1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
#ifndef XCOMM
#define XCOMM #
#endif
XCOMM Copyright(c) 1992 Bell Communications Research, Inc. (Bellcore)
XCOMM Copyright(c) 1995-99 Andrew Lister
XCOMM Copyright 1999, 2000, 2001, 2002 by the LessTif Developers
XCOMM $Id: Xbae.rules,v 1.2 2002/03/10 22:45:42 amai Exp $
XCOMM Additional imake rule for building a demo program which does not need
XCOMM to be installed.
XCOMM UninstalledSimpleProgramTarget - generate rules for compiling and linking
XCOMM programs that only have one C source file. It should only be used in
XCOMM Imakefiles that describe a single program.
#ifndef UninstalledSimpleProgramTarget
#define UninstalledSimpleProgramTarget(program) @@\
OBJS = program.o @@\
SRCS = program.c @@\
PROGRAM = program @@\
@@\
AllTarget(program) @@\
@@\
program: $(OBJS) $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
@@\
SaberProgramTarget(program,$(SRCS),$(OBJS),$(LOCAL_LIBRARIES), /**/) @@\
@@\
DependTarget() @@\
LintTarget() @@\
@@\
clean:: @@\
$(RM) $(PROGRAM)
XCOMM Clean up after ./configure has strewn all its files about.
clean::
$(RM) -r .libs *.la *.lo config.* libtool Make.conf
#endif /* UninstalledSimpleProgramTarget */
#if ProjectX > 5
XCOMM SaberProgramTarget - generate rules to make Saber-C read in sources and
XCOMM objects.
#ifndef SaberProgramTarget
#if HasSaberC
#define SaberProgramTarget(program,srclist,objlist,locallibs,syslibs) @@\
Concat(saber_,program):: srclist @@\
XCOMM load $(ALLDEFINES) srclist locallibs $(SYS_LIBRARIES) $(EXTRA_LIBRARIES) syslibs @@\
@@\
Concat(osaber_,program):: objlist @@\
XCOMM load $(ALLDEFINES) objlist locallibs $(SYS_LIBRARIES) $(EXTRA_LIBRARIES) syslibs
#else
#define SaberProgramTarget(program,srclist,objlist,locallibs,syslibs) /**/
#endif
#endif
#endif
|