diff options
| author | John Carr <jfc@mit.edu> | 1992-02-23 12:26:14 +0000 |
|---|---|---|
| committer | John Carr <jfc@mit.edu> | 1992-02-23 12:26:14 +0000 |
| commit | 93726adeb58e8485a79ea0955a219c6192ec8bff (patch) | |
| tree | 26e257135df01bebb04551c742929031396c3edc /src/lib | |
| parent | 4a18caf14532ea2b9d4e7708fcce6ee280f55057 (diff) | |
Add hack to work around imake problems on some systems when building
asn.1/Makefile.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2239 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/krb5/Imakefile | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/src/lib/krb5/Imakefile b/src/lib/krb5/Imakefile index 5859cf30d..b5fec1582 100644 --- a/src/lib/krb5/Imakefile +++ b/src/lib/krb5/Imakefile @@ -26,8 +26,11 @@ #define PassCDebugFlags NormalLibraryObjectRule() -SUBDIRS = error_tables asn.1 ccache keytab krb rcache free os kdb des \ +SUBDIRS1 = error_tables +SUBDIRS2 = ccache keytab krb rcache free os kdb des \ des425 crc-32 krb425 rsa-md4 gssapi +SUBDIRS = $(SUBDIRS1) asn.1 $(SUBDIRS2) + #ifdef HasVfprintf VPOBJS= VPSRCS= @@ -64,6 +67,31 @@ SRCS = \ MakeSubdirs($(SUBDIRS)) +/* This target will make all Makefiles except asn.1/Makefile. */ +#undef MakefileSubdirs +#define MakefileSubdirs(dirs) @@\ +MakeMakeSubdirs($(SUBDIRS1) $(SUBDIRS2), Makefiles) @@\ +MakeNsubdirMakefiles() + +Makefiles:: + $(MAKE) asn.1/Makefile TOP=../$(TOP) CURRENT_DIR=$(CURRENT_DIR)/asn.1 + +asn.1/Makefile:: + cd asn.1; set -e; \ + $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) -s Makefile.new; \ + sed 's/^@/ @/' Makefile.new > Makefile.newer && $(MV) Makefile.newer Makefile.new ;\ + $(MAKE) -f Makefile.new noop; \ + if [ -f Makefile ]; then \ + echo "$(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \ + $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \ + fi ; \ + $(MV) Makefile.new Makefile; \ + $(RM) Makefile.new Makefile.newer + + AdditiveLibraryTarget(krb5,$(OBJS)) RanlibLibraryTarget(des5) + +Krb5InstallLibrary(krb5,$(KRB5_LIBDIR)) +Krb5InstallLibrary(des5,$(KRB5_LIBDIR)) |
