From: John Kohl Date: Mon, 7 May 1990 10:33:16 +0000 (+0000) Subject: add TouchCmd, ArAddCmd, AdditiveLibraryTarget, OtherdirLibraryTarget X-Git-Tag: krb5-1.0-alpha2~652 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7337b165f834c0d7b01445c01e1d1346013e3e27;p=krb5.git add TouchCmd, ArAddCmd, AdditiveLibraryTarget, OtherdirLibraryTarget git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@751 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/config/Project.tmpl b/src/config/Project.tmpl index d60453b80..7cd71437b 100644 --- a/src/config/Project.tmpl +++ b/src/config/Project.tmpl @@ -3,6 +3,9 @@ #define ProjectKRB 5 +#ifndef TouchCmd +#define TouchCmd touch +#endif #ifndef CompileEtCmd #define CompileEtCmd $(ETSRC)/compile_et #endif @@ -21,6 +24,9 @@ #ifndef PosyCmd #define PosyCmd $(ISODE)/@sys/bin/posy #endif +#ifndef ArAddCmd +#define ArAddCmd ar cruv +#endif #ifndef PepyPosyRules #define PepyPosyRules() @@\ @@ -29,10 +35,70 @@ $(PEPY) $(PYFLAGS) $< #endif /* PepyPosyRules */ +#ifndef ErrorTableObjectRule + +#define ErrorTableObjectRule() @@\ +.SUFFIXES: .et @@\ + @@\ +.et.h: @@\ + $(COMPILE_ET) $*.et @@\ + @@\ +.et.c: @@\ + $(COMPILE_ET) $*.et + +#endif + +#ifndef CmdTableObjectRule + +#define CmdTableObjectRule() @@\ +.SUFFIXES: .ct @@\ + @@\ +.ct.c: @@\ + $(MK_CMDS) $*.ct + +#endif + +/* + * AdditiveLibraryTarget - generate rules to create a library from + * several directories + */ +#ifndef AdditiveLibraryTarget +#define AdditiveLibraryTarget(libname,objlist) @@\ +AllTarget(lib/**/libname.a) @@\ +AllTarget(foo/**/libname) @@\ + @@\ +foo/**/libname: objlist @@\ + $(ARADD) lib/**/libname.a objlist @@\ + $(TOUCH) foo/**/libname @@\ + $(RANLIB) $@ @@\ +lib/**/libname.a: objlist @@\ + $(ARADD) $@ objlist @@\ + $(RANLIB) $@ +#endif /* AdditiveLibraryTarget */ + +/* + * OtherdirLibraryTarget - generate rules to create a library in another + * directory from object files here + */ +#ifndef OtherdirLibraryTarget +#define OtherdirLibraryTarget(libdir,libname,objlist) @@\ +AllTarget(libdir/lib/**/libname.a) @@\ +AllTarget(foo/**/libname) @@\ + @@\ +foo/**/libname: objlist @@\ + $(ARADD) libdir/lib/**/libname.a objlist @@\ + $(TOUCH) foo/**/libname @@\ +libdir/lib/**/libname.a: @@\ + $(ARADD) $@ objlist @@\ + $(TOUCH) foo/**/libname +/* The $(RANLIB) is done at the end by the directory itself */ +#endif /* OtherdirLibraryTarget */ + /* * Default Definitions. */ + ARADD = ArAddCmd TOP_INCLUDES = -I$(TOP)/include $(STDC_TOP_INCLUDES) CONFIGSRC = $(TOP)/config IMAKESRC = $(CONFIGSRC) @@ -41,23 +107,16 @@ PYFLAGS = PepyFlags PEPY = PepyCmd POSY = PosyCmd + TOUCH = TouchCmd ETSRC = $(TOP)/lib/comerr/compile_et SSCMDSRC = $(TOP)/lib/ss/mk_cmds - DEPKLIB = $(TOP)/lib/krb/libkrb.a \ - $(TOP)/lib/ccache/libcred.a \ - $(TOP)/lib/ccache/file/libfcc.a \ - $(TOP)/lib/rcache/librc.a \ - $(TOP)/lib/keytab/libkt.a \ - $(TOP)/lib/keytab/file/libktfile.a \ + DEPKLIB = $(TOP)/lib/libkrb5.a \ $(TOP)/lib/os-4.3/libos.a \ - $(TOP)/error_tables/libkrberrs.a \ - $(TOP)/lib/cryptoconf.o \ $(TOP)/lib/des/libdes.a \ $(TOP)/lib/crc-32/libcrc32.a \ - $(TOP)/asn.1/libasn1.a \ - $(TOP)/lib/free/libkfree.a + $(TOP)/asn.1/libasn1.a - KLIB = $(DEPKLIB) $(ISODE)/@sys/lib/libisode.a -ldes -lcom_err $(TOP)/lib/libsyslog.a + KLIB = $(DEPKLIB) $(ISODE)/@sys/lib/libisode.a -ldes -lcom_err KDBLIB = $(TOP)/lib/kdb/libkdb.a #ifdef UseInstalled @@ -74,26 +133,3 @@ MK_CMDS = MkCmdsCmd #endif -#ifndef ErrorTableObjectRule - -#define ErrorTableObjectRule() @@\ -.SUFFIXES: .et @@\ - @@\ -.et.h: @@\ - $(COMPILE_ET) $*.et @@\ - @@\ -.et.c: @@\ - $(COMPILE_ET) $*.et - -#endif - -#ifndef CmdTableObjectRule - -#define CmdTableObjectRule() @@\ -.SUFFIXES: .ct @@\ - @@\ -.ct.c: @@\ - $(MK_CMDS) $*.ct - -#endif -