Makefile.am 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. SUBDIRS = config
  2. bin_PROGRAMS = dtlogin dtgreet dtchooser
  3. if HAS_PAM_LIBRARY
  4. PAM_LIB = -lpam
  5. DTPAMSVCLIB = $(LIBPAMSVC)
  6. else
  7. PAM_LIB =
  8. DTPAMSVCLIB =
  9. endif
  10. XDMDIR = $(CDE_LOGFILES_TOP)
  11. DEF_SERVER = $(XBINDIR)/X
  12. DEF_USER_PATH = $(PATH):$(XBINDIR)
  13. DEF_SYSTEM_PATH = $(PATH):$(XBINDIR)
  14. DEF_BM_PATH = $(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B%M.bm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B%M.pm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B%M.bm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B%M.pm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B%M.bm:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B%M.pm:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B%M.bm:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B%M.pm:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B
  15. DEF_PM_PATH = $(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B%M.pm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B%M.bm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B%M.pm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B%M.bm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B%M.pm:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B%M.bm:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B%M.pm:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B%M.bm:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B
  16. AM_CFLAGS = -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
  17. -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
  18. -DCDE_LOGFILES_TOP=\"$(CDE_LOGFILES_TOP)\" \
  19. -DBINDIR=\"$(XBINDIR)\" \
  20. -DXDMDIR=\"$(XDMDIR)\" \
  21. -DKORNSHELL=$(KSH) -DUNIXCONN -DTCPCONN -DXDMCP
  22. dtlogin_SOURCES = access.c account.c auth.c genauth.c daemon.c dm.c \
  23. dpylist.c error.c file.c mitauth.c protodpy.c policy.c \
  24. reset.c server.c session.c socket.c util.c \
  25. verify.c sysauth.c fontpath.c qualify.c choose.c netaddr.c \
  26. xdmcp.c $(PAM_SRCS)
  27. # We play a game here with resources.o (dtlogin). It needs special options.
  28. noinst_LIBRARIES = libresource.a
  29. libresource_a_SOURCES = resource.c
  30. libresource_a_CFLAGS = $(AM_CFLAGS) \
  31. -DDEF_SESSION=\"$(CDE_INSTALLATION_TOP)/bin/Xsession\" \
  32. -DDEF_SYSTEM_SHELL=\"/bin/sh\" \
  33. -DDEF_CHOOSER=\"$(CDE_INSTALLATION_TOP)/bin/dtchooser\" \
  34. -DDEF_XDM_CONFIG=\"Xconfig\" \
  35. -DDEF_SERVER_LINE=\"":0 Local local $(DEF_SERVER) :0"\" \
  36. -DXRDB_PROGRAM=\"$(XRDB)\" \
  37. -DDEF_USER_PATH=\"$(DEF_USER_PATH)\" \
  38. -DDEF_SYSTEM_PATH=\"$(DEF_SYSTEM_PATH)\" \
  39. -DDEF_FAILSAFE_CLIENT=\"$(XBINDIR)/xterm\" \
  40. -DDEF_AUTH_FILE=\"$(XDMDIR)/auth-server\" \
  41. -DDEF_AUTH_DIR=\"$(XDMDIR)\" \
  42. -DCPP_PROGRAM=\""$(CPP_PROGRAM)"\" \
  43. -DDEF_PM_SEARCH_PATH=\"$(DEF_PM_PATH)\" \
  44. -DDEF_BM_SEARCH_PATH=\"$(DEF_BM_PATH)\"
  45. dtgreet_SOURCES = vgcallback.c vglogo.c vgmain.c vgutil.c vglang.c
  46. dtchooser_SOURCES = chooser.c dtchooser.c vglogo.c vgutil.c vgcallback.c \
  47. vglang.c
  48. dtlogin_LDADD = libresource.a $(DTCLIENTLIBS) $(XDMCPLIB) \
  49. $(XTOOLLIB) $(TIRPCLIB) $(DTPAMSVCLIB) $(PAM_LIB)
  50. dtgreet_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
  51. dtchooser_LDADD = $(DTCLIENTLIBS) $(XDMCPLIB) $(XTOOLLIB)
  52. if LINUX
  53. AM_CFLAGS += -DHASDES -DHASXDMAUTH
  54. XBINDIR = /usr/bin
  55. dtlogin_SOURCES += xdmauth.c
  56. endif
  57. if FREEBSD
  58. AM_CFLAGS += -DHASDES -DHASXDMAUTH
  59. XBINDIR = /usr/local/bin
  60. dtlogin_SOURCES += xdmauth.c
  61. endif
  62. if OPENBSD
  63. XBINDIR = /usr/X11R6/bin
  64. AM_CFLAGS += -DHASDES -DHASXDMAUTH
  65. dtlogin_SOURCES += xdmauth.c
  66. endif
  67. if NETBSD
  68. XBINDIR = /usr/X11R7/bin
  69. endif
  70. if SOLARIS
  71. XBINDIR = /usr/bin/X11
  72. dtlogin_LDADD += -lgen -lresolv -lbsm -lcmd
  73. dtgreet_LDADD += -lgen -lresolv -lbsm -lcmd
  74. dtchooser_LDADD += -lgen -lresolv -lbsm -lcmd
  75. dtlogin_SOURCES += solaris.c
  76. endif