home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / clients / xdm / Imakefile < prev    next >
Encoding:
Makefile  |  1993-07-21  |  3.8 KB  |  120 lines

  1. XCOMM $XConsortium: Imakefile,v 1.58.1.1 92/12/17 20:08:19 gildea Exp $
  2. #define IHaveSubdirs
  3. #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
  4.  
  5. #define BuildChooser !SystemV
  6.  
  7. #if HasXdmAuth
  8. XDMAUTH_DEFINES = -DHASXDMAUTH
  9. XDMAUTHOBJS = xdmauth.o
  10. XDMAUTHSRCS = xdmauth.c
  11. #endif
  12.  
  13. #if HasSecureRPC
  14. RPC_DEFINES = -DSECURE_RPC
  15. RPCOBJS = rpcauth.o
  16. RPCSRCS = rpcauth.c
  17. RPCLIB = -lrpcsvc
  18. #endif
  19.  
  20. #if SystemV4 || HasShadowPasswd
  21. PWD_DEFINES = -DUSESHADOW
  22. #if SystemV
  23. SYS_LIBRARIES = -lsec
  24. #endif
  25. #endif
  26.  
  27. #if (defined(AIXArchitecture) && (OSMajorVersion >= 3))
  28. SYS_LIBRARIES = -ls
  29. #endif
  30.  
  31.    XDMCONFIGDIR = XdmConfigurationSubdirectory
  32.         SUBDIRS = $(XDMCONFIGDIR)
  33.  
  34. DEPLIBS = XawClientDepLibs $(DEPXAUTHLIB) $(DEPXDMCPLIB)
  35. LOCAL_LIBRARIES = XawClientLibs $(XAUTHLIB) $(XDMCPLIB) $(RPCLIB)
  36.           SRCS1 = auth.c daemon.c server.c dpylist.c dm.c error.c file.c \
  37.           greet.c netaddr.c reset.c resource.c protodpy.c policy.c \
  38.           session.c socket.c streams.c util.c verify.c xdmcp.c \
  39.           Login.c mitauth.c \
  40.           genauth.c access.c choose.c $(XDMAUTHSRCS) $(RPCSRCS)
  41.           OBJS1 = auth.o daemon.o server.o dpylist.o dm.o error.o file.o \
  42.           greet.o netaddr.o reset.o resource.o protodpy.o policy.o \
  43.           session.o socket.o streams.o util.o verify.o xdmcp.o \
  44.           Login.o mitauth.o \
  45.           genauth.o access.o choose.o $(XDMAUTHOBJS) $(RPCOBJS)
  46.           SRCS2 = xdmshell.c 
  47.           OBJS2 = xdmshell.o 
  48. #if BuildChooser
  49.           SRCS3 = chooser.c
  50.           OBJS3 = chooser.o
  51. #endif
  52.        DEPLIBS3 = XawClientDepLibs $(TOP)/lib/Xdmcp/libXdmcp.a
  53.           LIBS3 = XawClientLibs $(TOP)/lib/Xdmcp/libXdmcp.a
  54.        
  55.           SRCS4 = sessreg.c
  56.           OBJS4 = sessreg.o
  57. #if BuildChooser
  58.        PROGRAMS = xdm xdmshell sessreg chooser
  59. #else
  60.        PROGRAMS = xdm xdmshell sessreg
  61. #endif
  62.  
  63.  OSMAJORVERSION = OSMajorVersion
  64.  OSMINORVERSION = OSMinorVersion
  65.         DEFINES = -DBINDIR=\"$(BINDIR)\" -DXDMDIR=\"$(XDMDIR)\" \
  66.         $(SIGNAL_DEFINES) $(XDMAUTH_DEFINES) $(RPC_DEFINES) $(PWD_DEFINES) \
  67.         ConnectionFlags \
  68.         -DOSMAJORVERSION=$(OSMAJORVERSION) \
  69.         -DOSMINORVERSION=$(OSMINORVERSION)
  70.  
  71. XCOMM
  72. XCOMM Special definitions for compiling default resources; these parameters
  73. XCOMM should be set in util/imake.includes/site.def or the appropriate .macros
  74. XCOMM file in that directory.  The lack of initial spaces is to prevent imake
  75. XCOMM from accidently turning the lines into rules by putting a leading tab.
  76. XCOMM
  77. XCOMM Do NOT change these lines!
  78. XCOMM
  79. DEF_SERVER = $(BINDIR)/X
  80. DEF_USER_PATH = DefaultUserPath        /* no leading spaces or imake will */
  81. DEF_SYSTEM_PATH = DefaultSystemPath    /* indent as rule */
  82. BOURNE_SHELL = DefaultSystemShell
  83. RES_DEFINES = '-DDEF_SERVER_LINE=":0 local $(DEF_SERVER) :0"' \
  84.           '-DXRDB_PROGRAM="$(BINDIR)/xrdb"' \
  85.           '-DDEF_SESSION="$(BINDIR)/xterm -ls"' \
  86.           '-DDEF_USER_PATH="$(DEF_USER_PATH)"' \
  87.           '-DDEF_SYSTEM_PATH="$(DEF_SYSTEM_PATH)"' \
  88.           '-DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)"' \
  89.           '-DDEF_FAILSAFE_CLIENT="$(BINDIR)/xterm"' \
  90.           '-DDEF_XDM_CONFIG="$(XDMDIR)/xdm-config"' \
  91.           '-DDEF_CHOOSER="$(XDMDIR)/chooser"' \
  92.           '-DDEF_AUTH_DIR="$(XDMDIR)"'
  93.  
  94. ComplexProgramTarget_1(xdm,$(LOCAL_LIBRARIES),$(SYSLIBS))
  95. SingleProgramTarget(xdmshell,$(OBJS2),NullParameter,NullParameter)
  96. SingleProgramTarget(sessreg,$(OBJS4),NullParameter,NullParameter)
  97. #if BuildChooser
  98. NormalProgramTarget(chooser,$(OBJS3),$(DEPLIBS3),$(LIBS3),NullParameter)
  99. SaberProgramTarget(chooser,$(SRCS3),$(OBJS3),$(LIBS3),NullParameter)
  100. InstallProgram(chooser,$(XDMDIR))
  101. InstallAppDefaults(Chooser)
  102. #endif
  103.  
  104. SpecialObjectRule(resource.o, $(ICONFIGFILES), $(RES_DEFINES))
  105.  
  106. XCOMM these files depend on HASXDMAUTH
  107. auth.o policy.o: $(ICONFIGFILES)
  108.  
  109. #ifdef IHaveSubdirs
  110. MakeSubdirs($(SUBDIRS))
  111. #endif
  112.  
  113. /*
  114.  * Don't install; let people read the instructions about putting in the
  115.  * abort-display() resource:
  116.  */
  117. #ifdef comment
  118. InstallProgramWithFlags(xdmshell,$(BINDIR),NullParameter)
  119. #endif
  120.