Imakefile 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. XCOMM $TOG: Imakefile /main/22 1998/04/06 13:33:41 mgreess $
  2. DEPEND_DEFINES = $(DEPENDDEFINES)
  3. DEFINES = -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
  4. -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
  5. #if defined(SunArchitecture)
  6. DEPLIBS = $(DEPDTWIDGETLIB) $(DEPDTSVCLIB) $(DEPTTLIB) \
  7. $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
  8. LOCAL_LIBRARIES = $(DTWIDGETLIB) $(DTSVCLIB) $(TTLIB) \
  9. $(XMLIB) $(XTOOLLIB) $(USE_XHPLIB) $(XLIB)
  10. #else
  11. DEPLIBS = $(DEPDTHELPLIB) $(DEPDTWIDGETLIB) $(DEPDTSVCLIB) $(DEPTTLIB) \
  12. $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
  13. LOCAL_LIBRARIES = $(DTHELPLIB) $(DTWIDGETLIB) $(DTSVCLIB) $(TTLIB) \
  14. $(XMLIB) $(XTOOLLIB) $(USE_XHPLIB) $(XLIB)
  15. #endif /* SunArchitecture */
  16. SYS_LIBRARIES = -lm
  17. #if CDE_USEXINERAMA
  18. XINOPT = -DUSE_XINERAMA
  19. XINLIB = -lDtXinerama -lXinerama
  20. #endif
  21. #ifdef AlphaArchitecture
  22. SYS_LIBRARIES = -lm
  23. EXTRA_DEFINES = -DMULTIBYTE -DXLIB_ILLEGAL_ACCESS -DSIA
  24. #endif
  25. #ifdef HPArchitecture
  26. EXTRA_DEFINES = -DMULTIBYTE -DUSE_HPSSEXT
  27. USE_XHPLIB = $(XHPLIB)
  28. #endif
  29. #if defined(RsArchitecture)
  30. EXTRA_DEFINES = -D_ILS_MACROS -DSBSTDINC_H_NO_REDEFINE
  31. SYS_LIBRARIES = -lm -lbsd -ls -liconv
  32. #if (OSMajorVersion == 3)
  33. EXTRA_SRC = SmHftRing.c SmMigResources.c
  34. EXTRA_OBJS = $(ALTDIRECTORY)SmHftRing.o $(ALTDIRECTORY)SmMigResources.o
  35. #else
  36. EXTRA_SRC = SmMigResources.c
  37. EXTRA_OBJS = $(ALTDIRECTORY)SmMigResources.o
  38. #endif
  39. #endif
  40. #if defined(SunArchitecture)
  41. EXTRA_SRC = OWsync.c
  42. EXTRA_OBJS = $(ALTDIRECTORY)OWsync.o
  43. EXTRA_DEFINES = -D${PROGRAMS}
  44. SYS_LIBRARIES = -lelf -lm -ldl
  45. #endif
  46. #if defined(LinuxArchitecture)
  47. EXTRA_DEFINES = -D${PROGRAMS} $(XINOPT) -DUSE_X11SSEXT
  48. SYS_LIBRARIES = $(XINLIB) $(TIRPCLIB) -lXss -ldl -lcrypt -lm
  49. INCLUDES = $(TIRPCINC)
  50. #endif
  51. #if defined(FreeBSDArchitecture) || defined(NetBSDArchitecture)
  52. EXTRA_DEFINES = -D${PROGRAMS} $(XINOPT) -DUSE_X11SSEXT
  53. SYS_LIBRARIES = $(XINLIB) -lXss -lcrypt -lm
  54. #endif
  55. PROGRAMS=dtsession
  56. /**** Every .o except version.o may only be built in a remote
  57. **** directory as we do with rgy -> $(ALTDIRECTORY)
  58. ****/
  59. OBJS= $(ALTDIRECTORY)SmMain.o \
  60. $(ALTDIRECTORY)SmGlobals.o \
  61. $(ALTDIRECTORY)SmHelp.o \
  62. $(ALTDIRECTORY)SmCommun.o \
  63. $(ALTDIRECTORY)SmError.o \
  64. $(ALTDIRECTORY)SmProperty.o \
  65. $(ALTDIRECTORY)SmProtocol.o \
  66. $(ALTDIRECTORY)SmSave.o \
  67. $(ALTDIRECTORY)SmScreen.o \
  68. $(ALTDIRECTORY)SmRestore.o \
  69. $(ALTDIRECTORY)SmUI.o \
  70. $(ALTDIRECTORY)SmWindow.o \
  71. $(ALTDIRECTORY)SmLock.o \
  72. $(ALTDIRECTORY)SrvPalette.o\
  73. $(ALTDIRECTORY)SrvFile_io.o\
  74. $(ALTDIRECTORY)SmStrDefs.o \
  75. $(ALTDIRECTORY)SmConMgmt.o \
  76. $(EXTRA_OBJS) \
  77. $(ALTDIRECTORY)SmXSMP.o \
  78. $(ALTDIRECTORY)SmAuth.o \
  79. $(ALTDIRECTORY)SmWatch.o \
  80. $(ALTDIRECTORY)SmProp.o \
  81. $(ALTDIRECTORY)SmDB.o
  82. SRCS= SmMain.c \
  83. SmHelp.c \
  84. SmGlobals.c \
  85. SmCommun.c \
  86. SmError.c \
  87. SmProperty.c \
  88. SmProtocol.c \
  89. SmSave.c \
  90. SmScreen.c \
  91. SmRestore.c \
  92. SmUI.c \
  93. SmWindow.c \
  94. SmLock.c \
  95. SrvPalette.c\
  96. SrvFile_io.c\
  97. SmStrDefs.c \
  98. SmConMgmt.c \
  99. $(EXTRA_SRC) \
  100. SmXSMP.c \
  101. SmAuth.c \
  102. SmWatch.c \
  103. SmProp.c \
  104. SmDB.c
  105. /**************************************************************************
  106. *
  107. * Extra things for the Passwd Etc. version
  108. *
  109. **************************************************************************/
  110. #ifdef USE_RGY
  111. EXTRA_DEFINES = -DMULTIBYTE -DUSE_HPSSEXT -D__PASSWD_ETC +e
  112. EXTRA_LIBRARIES = $(RGYLIB) $(NCKLIB) -lndbm -lBSD ExtraLibraries
  113. #endif
  114. /******* RGY or KRB CASE *******************************/
  115. #if (defined(USE_KRB) || defined(USE_RGY)) && defined(HPArchitecture)
  116. /*******************************************************/
  117. /* don't build other .o's */
  118. .c.o:
  119. ComplexProgramTarget($(PROGRAMS))
  120. /******* NORMAL NON-RGY CASE *******************************/
  121. #else
  122. /***************************************************/
  123. ComplexProgramTarget($(PROGRAMS))
  124. DTSM_CMD1 = $(CDE_INSTALLATION_TOP)/bin/dtaction OpenHomeDir
  125. DTSM_CMD2 = $(CDE_INSTALLATION_TOP)/bin/dtfile -dir ~ -geometry +700+0
  126. DTSM_CMD4 = $(CDE_INSTALLATION_TOP)/bin/dthelpview -helpVolume Intromgr
  127. DTSM_CMD5 = $(CDE_INSTALLATION_TOP)/bin/dtaction Dthelpgen_delay
  128. LOCAL_CPP_DEFINES = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
  129. -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
  130. -DXBINDIR=$(XPROJECTROOT)/bin \
  131. -DKORNSHELL=$(KORNSHELL) \
  132. -DDTSM_CMD1="\"$(DTSM_CMD1)\"" \
  133. -DDTSM_CMD2="\"$(DTSM_CMD2)\"" \
  134. -DDTSM_CMD4="\"$(DTSM_CMD4)\"" \
  135. -DDTSM_CMD5="\"$(DTSM_CMD5)\""
  136. CPP_TARGETS = Dtsession dtloadresources dtsession.msg \
  137. sys.font sys.resources sys.resources.ive sys.session sys.session.ive
  138. AllTarget($(CPP_TARGETS))
  139. CppSourceFile(Dtsession,Dtsession.src,$(LOCAL_CPP_DEFINES),)
  140. CppScriptTarget(dtloadresources,dtloadresources.src,$(LOCAL_CPP_DEFINES),)
  141. CppSourceFile(dtsession.msg,dtsession.msg.src,$(LOCAL_CPP_DEFINES),)
  142. CppSourceFile(sys.font,sys.font.src,$(LOCAL_CPP_DEFINES),)
  143. CppSourceFile(sys.resources,sys.resources.src,$(LOCAL_CPP_DEFINES),)
  144. CppSourceFile(sys.resources.ive,sys.resources.src,-DIVE $(LOCAL_CPP_DEFINES),)
  145. CppSourceFile(sys.session,sys.session.src,$(LOCAL_CPP_DEFINES),)
  146. CppSourceFile(sys.session.ive,sys.session.src,-DIVE $(LOCAL_CPP_DEFINES),)
  147. #endif /* KRB || RGY */
  148. /* These headers are for using installed build. dthello uses these files */
  149. HEADERS = Srv.h SrvFile_io.h SrvPalette.h