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