XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:54:00 cpqbld Exp $ XCOMM $XFree86: xc/programs/rgb/Imakefile,v 3.9 2000/06/30 17:15:19 dawes Exp $ #if UseRgbTxt RGB_DEFINES = -DUSE_RGB_TXT #else RGB_PROG = ProgramTargetName(rgb) #endif RGB_DB = DefaultRGBDatabase SITE_RGB_DB = -DRGB_DB=\"$(RGB_DB)\" DEPLIBS = DEFINES = NdbmDefines $(SITE_RGB_DB) $(RGB_DEFINES) INCLUDES = -I$(SERVERSRC)/include #if !UseRgbTxt SRCS1 = rgb.c OBJS1 = rgb.o #endif SRCS2 = showrgb.c OBJS2 = showrgb.o SRCS = $(SRCS1) $(SRCS2) OBJS = $(OBJS1) $(OBJS2) PROGRAMS = $(RGB_PROG) ProgramTargetName(showrgb) #if !UseRgbTxt #if defined(BSDOSArchitecture) || defined(NetBSDArchitecture) || defined(OpenBSDArchitecture) DATAFILES = rgb.db DATADEP = rgb.db #else DATAFILES = rgb.pag rgb.dir DATADEP = rgb.dir /* just want one run of rgb */ #if !(defined(SGIArchitecture) || defined(SVR4Architecture) || defined(NetBSDArchitecture)) DBMLIB = DBMLibrary #endif #endif #if defined(SparcArchitecture) && HasGcc && !HasGcc2 CC = cc CCOPTIONS = /**/ EXTRA_LOAD_FLAGS = /**/ #endif #if defined(i386Architecture) && defined(SVR4Architecture) && !defined(SCOArchitecture) DBMLIB = DBMLibrary -lucb #endif #endif /*!UseRgbTxt */ all:: $(PROGRAMS) $(DATADEP) #if !UseRgbTxt SingleProgramTarget(rgb,$(OBJS1),NullParameter,$(DBMLIB)) SpecialCObjectRule(rgb,$(ICONFIGFILES),$(_NOOP_)) LinkBuildBinary(rgb) #endif SingleProgramTarget(showrgb,$(OBJS2),NullParameter,$(DBMLIB)) SpecialCObjectRule(showrgb,$(ICONFIGFILES),$(_NOOP_)) InstallMultiple($(DATAFILES) rgb.txt,$(LIBDIR)) InstallProgramWithFlags(showrgb,$(BINDIR),NullParameter) InstallManPage(showrgb,$(MANDIR)) #if !UseRgbTxt $(DATADEP): rgb rgb.txt RemoveFile($(DATAFILES)) ./rgb rgb < rgb.txt clean:: RemoveFile($(DATAFILES)) #endif DependTarget()