XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:54:29 cpqbld Exp $ XCOMM $XFree86: xc/programs/xinit/Imakefile,v 3.17 2003/05/27 17:58:24 tsi Exp $ #if HasVFork VFORK_DEFINES = -DHAS_VFORK #endif #if defined (XFree86Version) OS_DEFS = -DXFREE86 #elif defined (XorgVersion) OS_DEFS = -DXORG #endif #ifdef OS2Architecture DEFFILE = xinit.def #endif DEFINES = $(CONNECTION_FLAGS) $(VFORK_DEFINES) $(SIGNAL_DEFINES) \ -DBINDIR=\"$(BINDIR)\" $(OS_DEFS) DEPLIBS = $(DEPXONLYLIB) LOCAL_LIBRARIES = $(XONLYLIB) SRCS1 = xinit.c OBJS1 = xinit.o #ifndef OS2Architecture SAMPLECONFIG = xinitrc #else SAMPLECONFIG = xinitrc.cmd #endif PROGRAMS = ProgramTargetName(xinit) #if HasCookieMaker COOKIEDEFS = -DHAS_COOKIE_MAKER -DMK_COOKIE=MkCookieCmd #endif all:: startx $(SAMPLECONFIG) ComplexProgramTarget_1(xinit,$(LOCAL_LIBRARIES),$(DEFFILE)) MakeScriptFromCpp(xinitrc, -DXINITDIR=$(XINITDIR)) MakeScriptFromCpp(startx, -DXINITDIR=$(XINITDIR) -DBINDIR=$(BINDIR) $(COOKIEDEFS)) EXTRAMANDEFS=-D__xinitdir__=$(XINITDIR) -D__XCONFIGFILE__=XConfigFile -D__XSERVERNAME__=XServerName InstallNamedProg(startx,startx,$(BINDIR)) #ifdef OS2Architecture InstallNamedProg(startx.cmd,startx.cmd,$(BINDIR)) #endif InstallManPage(startx,$(MANDIR)) #if InstallXinitConfig InstallNonExecFile($(SAMPLECONFIG),$(XINITDIR)) #else InstallNonExecFileNoClobber($(SAMPLECONFIG),$(XINITDIR)) #endif LinkConfDirectory(xinit,.,xinit,.)