Imakefile 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. XCOMM $TOG: Imakefile /main/21 1999/03/01 18:26:06 mgreess $
  2. #define IHaveSubdirs
  3. #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
  4. SUBDIRS = config $(XDMSUBDIRS) $(BLSSUBDIRS) $(AFSSUBDIRS)
  5. #if CDE_USEXINERAMA
  6. XINOPT = -DUSE_XINERAMA
  7. XINLIB = -lDtXinerama -lXinerama
  8. #endif
  9. MakeSubdirs($(SUBDIRS))
  10. DependSubdirs($(SUBDIRS))
  11. #if InstallXdmConfig
  12. XDMCONFIGDIR = XdmConfigurationSubdirectory
  13. XDMSUBDIRS = $(XDMCONFIGDIR) bootxutil
  14. #endif
  15. /* please list any new dtlogin headers for use by krb and rgy */
  16. HEADERS = dm.h vg.h vglogo.h vgmsg.h vgproto.h
  17. #if HasXdmAuth
  18. DESDEFS = -DHASDES -DHASXDMAUTH -DSILLYEXPORTRULE
  19. DESOBJS = xdmauth.o
  20. DESSRCS = xdmauth.c
  21. #else
  22. #if HasDESLibrary
  23. DESDEFS = -DHASDES
  24. DESOBJS = xdmauth.o
  25. DESSRCS = xdmauth.c
  26. #else
  27. DESDEFS =
  28. DESOBJS =
  29. DESSRCS =
  30. #endif
  31. #endif
  32. #ifndef UsePamLibrary
  33. # define UsePamLibrary NO
  34. #endif
  35. #if UsePamLibrary
  36. PAM_SRCS = pam_svc.c
  37. PAM_OBJS = pam_svc.o
  38. PAM_LIB = -lpam
  39. #else
  40. PAM_SRCS =
  41. PAM_OBJS =
  42. PAM_LIB =
  43. #endif
  44. #ifdef SunArchitecture
  45. SOLARIS_SRCS = solaris.c
  46. SOLARIS_OBJS = solaris.o
  47. #else
  48. SOLARIS_SRCS =
  49. SOLARIS_OBJS =
  50. #endif
  51. #if defined(SunArchitecture) && !UsePamLibrary
  52. /* Unsure when libauth went away */
  53. # if (OSMajorVersion == 5) && (OSMinorVersion < 5)
  54. PAM_LIB = -lauth
  55. # else
  56. PAM_SRCS = pam_svc.c
  57. PAM_OBJS = pam_svc.o
  58. PAM_LIB = -lpam
  59. # endif
  60. #endif
  61. XDMDIR = $(CDE_LOGFILES_TOP)
  62. /****************** DTLOGIN ARCHIVE SECTION *****************
  63. A better long-term solution is a dtgreet subdirectory since dtgreet
  64. is built with shared libraries.
  65. dtlogin is always built archived in HP because of
  66. its importance for user startup. DEPLIBS needs to be explicitly set
  67. because default is null DEPLIBS for shared libraries.
  68. Does this need to be ifdef'd hp? */
  69. /* Defaults */
  70. LOGINDEPXMULIB = $(DEPXMULIB)
  71. LOGINXMULIB = $(XMULIB)
  72. LOGINDEPXLIB = $(DEPXLIB)
  73. LOGINXLIB = $(XLIB)
  74. #ifdef HPArchitecture
  75. # if (! defined(UseInstalled)) && (! defined(UseMitLibrariesFromSystemOnly))
  76. # ifdef SHLIB
  77. LOGINDEPXMULIB = $(XMUSRC)/libXmu.a
  78. LOGINXMULIB = $(LOGINDEPXMULIB)
  79. LOGINDEPXLIB = $(XLIBSRC)/libX11.a
  80. LOGINXLIB = $(LOGINDEPXLIB)
  81. /* This is really a kludge !! */
  82. LOGINLDOPTIONS = -Wl,-a archive
  83. # endif
  84. # endif
  85. # if OSMajorVersion >= 10
  86. SYS_LIBRARIES = -lsec
  87. # endif
  88. #endif
  89. #if defined(SunArchitecture)
  90. /* note: libcmd.a is a Sun static private lib for login related work.
  91. * It should come before $(PAM_LIB) in link line, at least when compiled
  92. * on Solaris 2.4 and run on Solaris 2.5. In Solaris 2.4 some of
  93. * libcmd.a functions are also in libauth.so. But on Solaris 2.5
  94. * these Sun private functions have been removed from libauth.so. */
  95. SYS_LIBRARIES = -lm -ldl -lgen -lresolv -lbsm -lcmd $(PAM_LIB)
  96. EXTRA_DEFINES = -DPAM
  97. # if UsePamLibrary
  98. EXTRA_DEFINES = -DPAM
  99. # endif
  100. #endif
  101. #if defined(USLArchitecture)
  102. SYS_LIBRARIES = -lm -ldl -lgen -lresolv
  103. #endif
  104. #if defined(UXPArchitecture)
  105. SYS_LIBRARIES = -lm -ldl -lgen -lresolv
  106. #endif
  107. #if defined(RsArchitecture)
  108. SYS_LIBRARIES = -ls
  109. #endif
  110. #ifdef AlphaArchitecture
  111. SYS_LIBRARIES = -lm -lXdmcp
  112. #endif
  113. #if defined(LinuxArchitecture) || \
  114. defined(FreeBSDArchitecture) || defined(NetBSDArchitecture)
  115. SYS_LIBRARIES = -lm -lcrypt
  116. EXTRA_DEFINES = $(XINOPT)
  117. LOGINXLIB = $(XLIB) $(XINLIB)
  118. /* just use the system provided Xau and Xdmcp*/
  119. DEPXAUTHLIB =
  120. DEPXDMCPLIB =
  121. #endif
  122. /* Add in freetype header locations, required for modern Motif libs */
  123. #ifdef LinuxArchitecture
  124. INCLUDES = -I/usr/include/freetype2
  125. #endif
  126. #if defined(BSDArchitecture)
  127. INCLUDES = -I$(XPROJECTROOT)/include/freetype2
  128. #endif
  129. /**************************************************************************
  130. *
  131. * Source and object modules
  132. *
  133. * SRCS1 = Dtlogin sources
  134. * OBJS1 = Dtlogin objects
  135. *
  136. * SRCS2 = Dtgreet sources
  137. * OBJS2 = Dtgreet objects
  138. *
  139. * SRCS3 = Dtchooser sources
  140. * OBJS3 - Dtchooser objects
  141. *
  142. **************************************************************************/
  143. PROG1 = dtlogin
  144. SRCS1 = access.c account.c auth.c genauth.c daemon.c dm.c \
  145. dpylist.c error.c file.c mitauth.c protodpy.c policy.c \
  146. reset.c resource.c server.c session.c socket.c util.c \
  147. verify.c version.c apollo.c sysauth.c fontpath.c $(DESSRCS) \
  148. qualify.c usl_ptty.c choose.c netaddr.c xdmcp.c \
  149. $(PAM_SRCS) $(SOLARIS_SRCS)
  150. OBJS1 = access.o account.o auth.o genauth.o daemon.o dm.o \
  151. dpylist.o error.o file.o mitauth.o protodpy.o policy.o \
  152. reset.o resource.o server.o session.o socket.o util.o \
  153. verify.o version.o apollo.o sysauth.o fontpath.o $(DESOBJS) \
  154. qualify.o usl_ptty.o choose.o netaddr.o xdmcp.o \
  155. $(PAM_OBJS) $(SOLARIS_OBJS)
  156. PROG2 = dtgreet
  157. #ifdef AlphaArchitecture
  158. SRCS2 = vgcallback.c vglogo.c vgmain.c vgutil.c \
  159. vgversion.c vgapollo.c vglang.c vgsiaform.c
  160. OBJS2 = vgcallback.o vglogo.o vgmain.o vgutil.o \
  161. vgversion.o vgapollo.o vglang.o vgsiaform.o
  162. #else
  163. SRCS2 = vgcallback.c vglogo.c vgmain.c vgutil.c \
  164. vgversion.c vgapollo.c vglang.c
  165. OBJS2 = vgcallback.o vglogo.o vgmain.o vgutil.o \
  166. vgversion.o vgapollo.o vglang.o
  167. #endif
  168. PROG3 = dtchooser
  169. SRCS3 = chooser.c dtchooser.c vglogo.c vgutil.c \
  170. vgcallback.c vglang.c
  171. OBJS3 = chooser.o dtchooser.o vglogo.o vgutil.o \
  172. vgcallback.o vglang.o
  173. PROGRAMS = $(PROG1) $(PROG2) $(PROG3)
  174. /**************************************************************************
  175. *
  176. * Defines
  177. *
  178. **************************************************************************/
  179. #if defined (SunArchitecture)
  180. NATIVEXBINDIR = /usr/openwin/bin
  181. #elif defined(FreeBSDArchitecture)
  182. NATIVEXBINDIR = /usr/local/bin
  183. #elif defined(OpenBSDArchitecture)
  184. NATIVEXBINDIR = /usr/X11R6/bin
  185. #elif defined(NetBSDArchitecture)
  186. NATIVEXBINDIR = /usr/X11R7/bin
  187. #else
  188. NATIVEXBINDIR = /usr/bin/X11
  189. #endif
  190. SIGDEFS = $(SIGNAL_DEFINES)
  191. XBINDIR = $(XPROJECTROOT)/bin
  192. OSMAJORVERSION = OSMajorVersion
  193. OSMINORVERSION = OSMinorVersion
  194. DTDEFINES = $(DESDEFS) ConnectionFlags \
  195. -DBINDIR=\"$(XBINDIR)\" -DXDMDIR=\"$(XDMDIR)\" $(SIGDEFS) \
  196. -DOSMAJORVERSION=$(OSMAJORVERSION) \
  197. -DOSMINORVERSION=$(OSMINORVERSION) \
  198. -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
  199. -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
  200. DEPEND_DEFINES = $(DEPENDDEFINES)
  201. #if defined (HPArchitecture)
  202. DEFINES = $(DTDEFINES) -D_XPG2 -DAUDIT -DBYPASSLOGIN ServerExtraDefines
  203. #elif defined (RsArchitecture)
  204. DEFINES = $(DTDEFINES) -D_ILS_MACROS -DBSD44SOCKETS \
  205. -D__NetBSD__ -DENABLE_DYNAMIC_LANGLIST
  206. #elif defined (AlphaArchitecture)
  207. DEFINES = $(DTDEFINES) -DXDMCP -DSIA
  208. #elif defined (LinuxArchitecture)
  209. DEFINES = $(DTDEFINES) -DXDMCP
  210. #else
  211. DEFINES = $(DTDEFINES) -D_NO_PROTO
  212. #endif
  213. XCOMM
  214. XCOMM Special definitions for compiling default resources; these parameters
  215. XCOMM should be set in util/imake.includes/site.def or the appropriate .macros
  216. XCOMM file in that directory. The lack of initial spaces is to prevent imake
  217. XCOMM from accidently turning the lines into rules by putting a leading tab.
  218. XCOMM
  219. XCOMM Do NOT change these lines!
  220. XCOMM
  221. DEF_SERVER = $(XBINDIR)/X
  222. DEF_USER_PATH = DefaultUserPath:/usr/ccs/bin:$(NATIVEXBINDIR):$(XBINDIR)
  223. DEF_SYSTEM_PATH = DefaultSystemPath:$(NATIVEXBINDIR):$(XBINDIR)
  224. BOURNE_SHELL = DefaultSystemShell
  225. CPP_PROGRAM = CppCmd
  226. 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
  227. 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
  228. RES_DEFINES = '-DDEF_SERVER_LINE=":0 Local local $(DEF_SERVER) :0"' \
  229. '-DXRDB_PROGRAM="$(XBINDIR)/xrdb"' \
  230. '-DDEF_USER_PATH="$(DEF_USER_PATH)"' \
  231. '-DDEF_SYSTEM_PATH="$(DEF_SYSTEM_PATH)"' \
  232. '-DDEF_FAILSAFE_CLIENT="$(XBINDIR)/xterm"' \
  233. '-DDEF_AUTH_FILE="$(XDMDIR)/auth-server"' \
  234. '-DDEF_AUTH_DIR="$(XDMDIR)"' \
  235. '-DCPP_PROGRAM="$(CPP_PROGRAM)"' \
  236. '-DDEF_PM_SEARCH_PATH="$(DEF_PM_PATH)"' \
  237. '-DDEF_BM_SEARCH_PATH="$(DEF_BM_PATH)"'
  238. XCOMM
  239. XCOMM These -D flags had to be taken out of the RES_DEFINES macro in order
  240. XCOMM to get around a buffer limitation in the Sun C compiler code generation
  241. XCOMM phase. The code generation phase creates a temporary assembler file
  242. XCOMM containing the command line to the compiler and all the .ident pragmas.
  243. XCOMM With resent changes to the Imakefile, the command line had gotten so
  244. XCOMM long that it exceeded an internal buffer length resulting in errors in
  245. XCOMM the generated assembler code. The EXTRA_RES_DEFINES were extracted
  246. XCOMM from the RES_DEFINES macro in order to shorten the command line on
  247. XCOMM the Sun platform. These particular -D flags were chosen as the
  248. XCOMM least likely to change or be system dependent.
  249. XCOMM
  250. #ifdef SunArchitecture
  251. EXTRA_RES_DEFINES =
  252. #else
  253. EXTRA_RES_DEFINES = \
  254. '-DDEF_SESSION="$(CDE_INSTALLATION_TOP)/bin/Xsession"' \
  255. '-DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)"' \
  256. '-DDEF_CHOOSER="$(CDE_INSTALLATION_TOP)/bin/dtchooser"' \
  257. '-DDEF_XDM_CONFIG="Xconfig"'
  258. #endif
  259. /**************************************************************************
  260. *
  261. * Libraries
  262. *
  263. * BASE_LIBS1 = dtlogin base libraries
  264. * BASE_LIBS2 = dtgreet base libraries
  265. *
  266. **************************************************************************/
  267. DEPLIBS1 = $(DEPXAUTHLIB) $(DEPXDMCPLIB) $(LOGINDEPXMULIB) $(LOGINDEPXLIB)
  268. DEPLIBS2 = $(DEPDTWIDGETLIB) $(DEPDTSVCLIB) $(DEPTTLIB) $(DEPXMLIB) \
  269. $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
  270. DEPLIBS3 = $(DEPXDMCPLIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
  271. BASE_LIBS1 = $(XAUTHLIB) $(LOGINXMULIB) $(XDMCPLIB) $(LOGINXLIB)
  272. BASE_LIBS2 = $(DTWIDGETLIB) $(DTSVCLIB) $(TTLIB) $(XMLIB) \
  273. $(XTOOLLIB) $(XPLIB) $(XLIB) $(XINLIB)
  274. BASE_LIBS3 = $(DTWIDGETLIB) $(DTSVCLIB) $(TTLIB) $(XDMCPLIB) $(XMLIB) \
  275. $(XTOOLLIB) $(XPLIB) $(XLIB) $(XINLIB)
  276. LOCAL_LIBRARIES1 = $(BASE_LIBS1) $(IAFSYSLIB)
  277. LOCAL_LIBRARIES2 = $(BASE_LIBS2)
  278. LOCAL_LIBRARIES3 = $(BASE_LIBS3)
  279. /* USL needs to resolve all Xt symbols invoked by Xmu at shared
  280. * library link time.
  281. * Likewise for the BMS references from libDt for vuegreet.
  282. */
  283. #if defined(USLArchitecture)
  284. # if HasSharedLibraries
  285. BASE_LIBS1 = $(XAUTHLIB) $(LOGINXMULIB) $(XDMCPLIB) $(XTOOLLIB) \
  286. $(LOGINXLIB)
  287. BASE_LIBS2 = $(DTWIDGETLIB) $(DTSVCLIB) $(TTLIB) \
  288. $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB)
  289. # endif
  290. #endif
  291. #if defined(UXPArchitecture)
  292. # if HasSharedLibraries
  293. BASE_LIBS1 = $(XAUTHLIB) $(LOGINXMULIB) $(XDMCPLIB) $(XTOOLLIB) \
  294. $(LOGINXLIB)
  295. BASE_LIBS2 = $(DTWIDGETLIB) $(DTSVCLIB) $(TTLIB) \
  296. $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB)
  297. # endif
  298. #endif
  299. /**************************************************************************
  300. *
  301. * Extra things for the HP-UX BLS version
  302. *
  303. **************************************************************************/
  304. #ifndef BLS
  305. # ifdef HPArchitecture
  306. # if (OSMajorVersion == 8) && (OSMinorVersion == 8)
  307. # define BLS
  308. # endif
  309. # endif
  310. #endif
  311. #ifdef BLS
  312. BLSSUBDIRS = bls
  313. BLSLIBSRC = ./bls
  314. EXTRA_DEFINES = -UAUDIT -D_NO_PROTO
  315. EXTRA_CFLAGS = -Wp,-H256000
  316. EXTRA_LIBRARIES = $(BLSLIBSRC)/libbls.a -lsec ExtraLibraries
  317. STD_CPP_DEFINES = -DSYSV -DBLS
  318. #endif
  319. /**************************************************************************
  320. *
  321. * Extra things for the Kerberos/AFS version (dtlogin.krb)
  322. *
  323. **************************************************************************/
  324. #ifdef USE_KRB
  325. AFSSUBDIRS = afs
  326. KRBLIBSRC = $(LIBSRC)/krb
  327. DEPKRBLIB = $(KRBLIBSRC)/libkrb.a
  328. KRBLIB = $(DEPKRBLIB)
  329. DESLIBSRC = $(LIBSRC)/des
  330. DEPDESLIB = $(DESLIBSRC)/libdes.a
  331. DESLIB = $(DEPDESLIB)
  332. KRBINCLUDESRC = $(KRBLIBSRC)/include
  333. AFSLIBSRC = ./afs
  334. AFSINCLUDESRC = $(AFSLIBSRC)
  335. EXTRA_INCLUDES = -I$(KRBINCLUDESRC) -I$(AFSINCLUDESRC)
  336. EXTRA_DEFINES = -D__KERBEROS -D__AFS
  337. LOCAL_LIBRARIES1 = $(BASE_LIBS1) \
  338. $(KRBLIB) \
  339. $(IAFSYSLIB) \
  340. $(AFSLIBSRC)/libafsutil.a \
  341. $(AFSLIBSRC)/$(VENDOR)/$(HARDWARE)/libdes.a
  342. LOCAL_LIBRARIES2 = $(BASE_LIBS2) \
  343. $(KRBLIB) \
  344. $(AFSLIBSRC)/$(VENDOR)/$(HARDWARE)/libkauth.a \
  345. $(AFSLIBSRC)/$(VENDOR)/$(HARDWARE)/libprot.a \
  346. $(AFSLIBSRC)/$(VENDOR)/$(HARDWARE)/libubik.a \
  347. $(AFSLIBSRC)/$(VENDOR)/$(HARDWARE)/libauth.a \
  348. $(AFSLIBSRC)/$(VENDOR)/$(HARDWARE)/librxkad.a \
  349. $(AFSLIBSRC)/$(VENDOR)/$(HARDWARE)/libsys.a \
  350. $(AFSLIBSRC)/$(VENDOR)/$(HARDWARE)/libdes.a \
  351. $(AFSLIBSRC)/$(VENDOR)/$(HARDWARE)/librx.a \
  352. $(AFSLIBSRC)/$(VENDOR)/$(HARDWARE)/liblwp.a \
  353. $(AFSLIBSRC)/$(VENDOR)/$(HARDWARE)/libcom_err.a \
  354. $(AFSLIBSRC)/libafsutil.a \
  355. -lBSD
  356. #endif
  357. /**************************************************************************
  358. *
  359. * Extra things for the Passwd Etc. version (dtlogin.rgy)
  360. *
  361. **************************************************************************/
  362. #ifdef USE_RGY
  363. EXTRA_INCLUDES = -I$(RGYINCLUDESRC)
  364. EXTRA_DEFINES = -D__PASSWD_ETC +e
  365. EXTRA_LIBRARIES = $(RGYLIB) $(NCKLIB) -lndbm -lBSD ExtraLibraries
  366. #endif
  367. /**************************************************************************
  368. *
  369. * Extra things for Dtge
  370. *
  371. * HIDDEN_SYMBOLS1 = dtlogin hidden symbols
  372. * HIDDEN_SYMBOLS2 = dtgreet hidden symbols
  373. *
  374. **************************************************************************/
  375. #ifdef HPArchitecture
  376. # ifdef __hp9000s300
  377. HIDDEN_SYMBOLS1 = -h _main -h _BecomeDaemon -h _GetHourGlass \
  378. -h _Verify
  379. HIDDEN_SYMBOLS2 = -h _main -h _LogError -h _PingServer
  380. # else
  381. HIDDEN_SYMBOLS1 = -h main -h BecomeDaemon -h GetHourGlass \
  382. -h Verify
  383. HIDDEN_SYMBOLS2 = -h main -h LogError -h PingServer
  384. # endif
  385. #endif
  386. /**************************************************************************
  387. *
  388. * Rules
  389. *
  390. **************************************************************************/
  391. #if defined(USE_KRB) || defined(USE_RGY)
  392. includes::
  393. @for i in $(SRCS1) $(SRCS2) $(HEADERS); do \
  394. $(RM) $$i; \
  395. echo "linking $(DTLOGINSRC)/$$i to $$i";\
  396. ln -f -s $(DTLOGINSRC)/$$i .; \
  397. done
  398. #endif
  399. ComplexProgramTarget_1($(PROG1),$(LOCAL_LIBRARIES1), $(LOGINLDOPTIONS))
  400. ComplexProgramTarget_2($(PROG2),$(LOCAL_LIBRARIES2), /**/)
  401. ComplexProgramTarget_3($(PROG3),$(LOCAL_LIBRARIES3), /**/)
  402. #ifdef __ppc
  403. /* Problem with "-O" in dtgreet ... wrong size login widget. */
  404. /* Override "-O" (xO2) with "-xO1". */
  405. vgutil.o:
  406. $(RM) $@
  407. $(CC) -c $(CFLAGS) -xO1 $(_NOOP_) $*.c
  408. #endif
  409. SpecialObjectRule(resource.o, $(ICONFIGFILES), $(EXTRA_RES_DEFINES) $(RES_DEFINES) $(CCINLIBS))
  410. #ifdef HPArchitecture
  411. #ifndef DEBUGTREE
  412. SpecialObjectRule(session.o,,+O1 $(CCINLIBS))
  413. #endif
  414. #endif
  415. #if !defined(USE_KRB) && !defined(USE_RGY)
  416. LOCAL_CPP_DEFINES = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
  417. -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
  418. -DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP)
  419. #endif /* USE_KRB && USE_RGY */
  420. #if InstallXdmConfig
  421. MakeDirectories(install,$(XDMDIR))
  422. #endif
  423. /*
  424. * Don't install; let people read the instructions about putting in the
  425. * abort-display() resource:
  426. */
  427. #ifdef comment
  428. InstallProgramWithFlags(xdmshell,$(XBINDIR), /**/)
  429. #endif
  430. #if !defined(USE_KRB) && !defined(USE_RGY)
  431. /***** For dtge make a client_OBJS.o using client_main.o ******/
  432. /***** This implies the existence of client_main.c ******/
  433. # ifdef BuildHugeObject
  434. # if defined (HPArchitecture) && ! defined (BLS)
  435. SpecialRelocatableTarget(dtlogin,$(HIDDEN_SYMBOLS1),$(OBJS1))
  436. SpecialRelocatableTarget(dtgreet,$(HIDDEN_SYMBOLS2),$(OBJS2))
  437. # endif
  438. # endif
  439. #endif