Makefile.am 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. MAINTAINERCLEANFILES = Makefile.in
  2. bin_PROGRAMS = dtsession
  3. bin_SCRIPTS = dtsession_res
  4. if HAS_PAM_LIBRARY
  5. DTPAMSVCLIB = $(LIBPAMSVC)
  6. else
  7. DTPAMSVCLIB =
  8. endif
  9. dtsession_CFLAGS = -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
  10. -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
  11. -Ddtsession
  12. dtsession_SOURCES = SmMain.c SmHelp.c SmGlobals.c SmCommun.c \
  13. SmError.c SmProperty.c SmProtocol.c SmSave.c SmScreen.c \
  14. SmRestore.c SmUI.c SmWindow.c SmLock.c SrvPalette.c \
  15. SrvFile_io.c SmStrDefs.c SmConMgmt.c SmXSMP.c SmAuth.c \
  16. SmWatch.c SmProp.c SmDB.c OWsync.h SmGlobals.h SmProperty.h \
  17. SmScreen.h SmXSMP.h SmAuth.h Sm.h SmProp.h SmUI.h \
  18. SrvFile_io.h SmCommun.h SmHelp.h SmProtocol.h SmWatch.h Srv.h \
  19. SmConMgmt.h SmHftRing.h SmResource.h SmWindow.h SrvPalette.h \
  20. SmDB.h SmLock.h SmRestore.h SmXdef.h SmError.h \
  21. SmMigResources.h SmSave.h SmXrm.h
  22. dtsession_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB) $(DTPAMSVCLIB)
  23. if SOLARIS
  24. dtsession_SOURCES += OWsync.c
  25. dtsession_LDADD += -lelf
  26. endif
  27. if LINUX
  28. dtsession_CFLAGS += -DUSE_X11SSEXT
  29. dtsession_LDADD += $(TIRPCLIB) -lXss
  30. endif
  31. if BSD
  32. dtsession_CFLAGS += -DUSE_X11SSEXT
  33. dtsession_LDADD += -lXss
  34. endif
  35. DTSM_CMD1 = $(CDE_INSTALLATION_TOP)/bin/dtaction OpenHomeDir
  36. DTSM_CMD2 = $(CDE_INSTALLATION_TOP)/bin/dtfile -dir ~ -geometry +700+0
  37. DTSM_CMD4 = $(CDE_INSTALLATION_TOP)/bin/dthelpview -helpVolume Intromgr
  38. DTSM_CMD5 = $(CDE_INSTALLATION_TOP)/bin/dtaction Dthelpgen_delay
  39. LOCAL_CPP_DEFINES = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
  40. -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
  41. -DXRDB=$(XRDB) \
  42. -DKORNSHELL=$(KSH) \
  43. -DDTSM_CMD1="\"$(DTSM_CMD1)\"" \
  44. -DDTSM_CMD2="\"$(DTSM_CMD2)\"" \
  45. -DDTSM_CMD4="\"$(DTSM_CMD4)\"" \
  46. -DDTSM_CMD5="\"$(DTSM_CMD5)\""
  47. SUBDIRS = config
  48. if LINUX
  49. LOCAL_CPP_DEFINES += -Dlinux -D__linux__
  50. endif
  51. if FREEBSD
  52. LOCAL_CPP_DEFINES += -DFREEBSD -D__FreeBSD__
  53. endif
  54. if SOLARIS
  55. LOCAL_CPP_DEFINES += -Dsun
  56. endif
  57. if OPENBSD
  58. LOCAL_CPP_DEFINES += -D__OpenBSD__
  59. endif
  60. if NETBSD
  61. LOCAL_CPP_DEFINES += -D__NetBSD__
  62. endif
  63. if BSD
  64. LOCAL_CPP_DEFINES += -DCSRG_BASED
  65. endif
  66. BUILT_SOURCES = Dtsession dtloadresources dtsession.msg sys.font \
  67. sys.resources sys.resources.ive sys.session sys.session.ive
  68. CLEANFILES = $(BUILT_SOURCES)
  69. Dtsession: Dtsession.src
  70. $(RM) $@
  71. $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
  72. dtsession_res: dtloadresources
  73. $(RM) $@
  74. $(LN_S) $< $@
  75. dtloadresources: dtloadresources.src
  76. $(RM) $@
  77. $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
  78. chmod 755 $@
  79. dtsession.msg: dtsession.msg.src
  80. $(RM) $@
  81. $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
  82. sys.font: sys.font.src
  83. $(RM) $@
  84. $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
  85. sys.resources: sys.resources.src
  86. $(RM) $@
  87. $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
  88. sys.resources.ive: sys.resources.src
  89. $(RM) $@
  90. $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) -DIVE $< > $@
  91. sys.session: sys.session.src
  92. $(RM) $@
  93. $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
  94. sys.session.ive: sys.session.src
  95. $(RM) $@
  96. $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) -DIVE $< > $@
  97. # systems without a PAM library need dtsession to be SUID root
  98. install-exec-hook:
  99. if !HAS_PAM_LIBRARY
  100. chown root $(DESTDIR)$(bindir)/dtsession
  101. chmod 4755 $(DESTDIR)$(bindir)/dtsession
  102. endif