diff options
| author | John Carr <jfc@mit.edu> | 1992-03-25 15:05:27 +0000 |
|---|---|---|
| committer | John Carr <jfc@mit.edu> | 1992-03-25 15:05:27 +0000 |
| commit | cfaafe238b3c4eaf74d94c0500a1216fcfb5cce6 (patch) | |
| tree | 831ab696cfe24d5a488588dd921ec5629dc20109 /src/config/Project.tmpl | |
| parent | 3281657b47d0ca44048c576036972dd0433dad81 (diff) | |
| download | krb5-cfaafe238b3c4eaf74d94c0500a1216fcfb5cce6.tar.gz krb5-cfaafe238b3c4eaf74d94c0500a1216fcfb5cce6.tar.xz krb5-cfaafe238b3c4eaf74d94c0500a1216fcfb5cce6.zip | |
Support alternate source directory
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2268 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config/Project.tmpl')
| -rw-r--r-- | src/config/Project.tmpl | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/config/Project.tmpl b/src/config/Project.tmpl index 2189283bc..236451008 100644 --- a/src/config/Project.tmpl +++ b/src/config/Project.tmpl @@ -107,6 +107,10 @@ basename/**/_defs.h basename/**/_pre_defs.h basename-types.h basename/**/_tables #endif +#ifdef LibraryRules +#include LibraryRules +#endif + /* * AdditiveLibraryTarget - generate rules to create a library from * several directories @@ -185,7 +189,8 @@ includes:: hfile @@\ newname: stockname Makefile @@\ -$(RM) newname.new @@\ -$(UNIFDEF) $(PROCESS_DEFINES) stockname >newname.new @@\ - CopyHeaderNewName(newname.new,.,newname) + if cmp -s newname.new newname ; then true; \ @@\ + else $(RM) newname ; $(CP) newname.new newname ; fi #endif /* ProcessStockHeader */ /* @@ -310,20 +315,13 @@ clean:: @@\ */ #ifndef SimpleTestProgramTarget #define SimpleTestProgramTarget(program) @@\ - OBJS = program.o @@\ - SRCS = program.c @@\ - PROGRAM = program @@\ - @@\ AllTarget(program) @@\ @@\ -program: $(OBJS) $(DEPLIBS) @@\ +program: program.o $(DEPLIBS) @@\ RemoveTargetProgram($@) @@\ - $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\ + $(CC) -o $@ program.o $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\ @@\ -SaberProgramTarget(program,$(SRCS),$(OBJS),$(LOCAL_LIBRARIES), /**/) @@\ - @@\ -DependTarget() @@\ -LintTarget() @@\ +SaberProgramTarget(program,program.c,program.o,$(LOCAL_LIBRARIES), /**/)@@\ @@\ clean:: @@\ $(RM) $(PROGRAM) @@ -441,7 +439,11 @@ P_VOLATILE=-UUseVolatile */ ARADD = ArAddCmd +#ifdef SourceTop + TOP_INCLUDES = -I$(TOP)/include -I/**/SourceTop/include $(STDC_TOP_INCLUDES) +#else TOP_INCLUDES = -I$(TOP)/include $(STDC_TOP_INCLUDES) +#endif CONFIGSRC = $(TOP)/config ISODE = IsodeDir PSYFLAGS = PepsyFlags |
