From: John Kohl Date: Tue, 28 Aug 1990 16:34:57 +0000 (+0000) Subject: special rules & such for splitting up asn1 output X-Git-Tag: krb5-1.0-alpha2~357 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=638feeab064af53dec3693710c01361432a5be2c;p=krb5.git special rules & such for splitting up asn1 output git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1054 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/Imakefile b/src/lib/krb5/asn.1/Imakefile index a067dbc17..74fd102ff 100644 --- a/src/lib/krb5/asn.1/Imakefile +++ b/src/lib/krb5/asn.1/Imakefile @@ -68,7 +68,7 @@ SRCS= \ u2gen.c OBJS= \ - KRB5-types.o \ + $(TYPESOBJS) \ encode.o \ decode.o \ adat2kadat.o \ @@ -124,13 +124,44 @@ OBJS= \ trep2ktrep.o \ u2gen.o +#ifdef TypesObjs +#include "KRB5-oflist" +#endif + +all:: KRB5-oflist Makefile OtherdirLibraryTarget($(TOP)/lib,krb5,$(OBJS)) + +#$(TOP)/lib/libkrb5.a:: KRB5-oflist KRB5-pt0.o +# $(ARADD) $@ `cat KRB5-oflist` +# $(TOUCH) fookrb5 + +#KRB5-pt0.o: KRB5-pt0.c KRB5-cflist +# $(CC) -c $(CFLAGS) `cat KRB5-cflist` + +#define IHaveSpecialMakefileTarget + +ImakeDependency(Makefile) + +Makefile:: KRB5-oflist Imakefile + $(IMAKE_CMD) -DTypesObjs -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) -s 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 + +noop:: + +KRB5-pt0.c KRB5-cflist KRB5-oflist: KRB5-types.c process.perl + $(PERL) process.perl KRB5-types.c KRB5-pt /dev/null KRB5-oflist + KRB5-types.c: KRB5-types.py KRB5-types.py: KRB5-asn.py $(POSY) $(POFLAGS) -o $@ KRB5-asn.py clean:: - $(RM) KRB5-types.c KRB5.ph KRB5-types.py KRB5-types.h + $(RM) KRB5-types.c KRB5.ph KRB5-types.py KRB5-types.h KRB5-pt*.c KRB5-oflist