summaryrefslogtreecommitdiff
path: root/config/Makefile.am
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2015-12-24 17:25:15 +0100
committerMatthieu Herrb <matthieu@herrb.eu>2015-12-24 17:25:15 +0100
commitcec06325ba15fc490a5df2d215fc80030534cf07 (patch)
tree5bf538bf45d040f3a614bc4dcadfc89411974302 /config/Makefile.am
Start of a new reduced version of xdm.
Removed support for non BSD systems and for XDMCP.
Diffstat (limited to 'config/Makefile.am')
-rw-r--r--config/Makefile.am62
1 files changed, 62 insertions, 0 deletions
diff --git a/config/Makefile.am b/config/Makefile.am
new file mode 100644
index 0000000..30e22ea
--- /dev/null
+++ b/config/Makefile.am
@@ -0,0 +1,62 @@
+#
+
+include $(top_srcdir)/cpprules.in
+
+xdmscriptdir = $(XDMSCRIPTDIR)
+xdmconfigdir = $(XDMCONFIGDIR)
+
+dist_xdmconfig_DATA = \
+ Xaccess
+
+xdmconfig_DATA = \
+ xdm-config \
+ Xresources \
+ Xservers
+
+xdmscript_SCRIPTS = \
+ Xreset \
+ Xsession \
+ Xstartup
+
+dist_xdmscript_SCRIPTS = \
+ GiveConsole \
+ TakeConsole \
+ Xsetup_0 \
+ Xwilling
+
+pixmapdir = $(XDM_PIXMAPDIR)
+
+dist_pixmap_DATA = xorg-bw.xpm xorg.xpm
+
+BUILT_SOURCES = Xservers.ws xdm-config Xreset Xresources Xsession Xstartup
+
+CLEANFILES = $(BUILT_SOURCES) Xservers
+
+EXTRA_DIST = Xservers.ws.cpp Xservers.fs \
+ xdm-config.cpp Xreset.cpp Xresources.cpp Xsession.cpp Xstartup.cpp
+
+Xservers: Xservers.$(SERVERSTYPE)
+ ln -s Xservers.$(SERVERSTYPE) Xservers
+
+# Defines used when cpp'ing config files to replace settings in the files
+
+#if USE_XPM
+XPMDEFINES = -DXPM -DBITMAPDIR=$(XDM_PIXMAPDIR) -DXDM_PIXMAP=$(XDM_PIXMAP) \
+ -DXDM_BWPIXMAP=$(XDM_BWPIXMAP)
+#endif
+
+#if HAVE_MKTEMP_COMMAND
+MKTEMP_DEFINES = -DMKTEMP_COMMAND=$(MKTEMP_COMMAND)
+#endif
+
+CPP_FILES_FLAGS = -DBINDIR="$(bindir)" -DDEFAULTVT="$(DEFAULTVT)" \
+ -DUTMP_FILE="$(UTMP_FILE)" -DWTMP_FILE="$(WTMP_FILE)" \
+ -DXDMDIR="$(XDMLIBDIR)" -DXDMLOGDIR="$(XDMLOGDIR)" \
+ -DXDMXAUTHDIR="$(XDMXAUTHDIR)" \
+ -DXDMPIDDIR="$(XDMPIDDIR)" -DXDMCONFIGDIR="$(XDMCONFIGDIR)" \
+ -DXDMSCRIPTDIR="$(XDMSCRIPTDIR)" -DSU="$(SU)" \
+ -DCHOOSERPATH="$(XDMLIBDIR)/chooser" $(XPMDEFINES) \
+ -DSHELL_CMD="$(SHELL_CMD)" $(MKTEMP_DEFINES)
+
+Xservers.ws: $(srcdir)/Xservers.ws.cpp
+ $(AM_V_GEN)$(RAWCPP) $(RAWCPPFLAGS) $(CPP_FILES_FLAGS) < $(srcdir)/Xservers.ws.cpp | $(CPP_SED_MAGIC) > $@