special rules & such for splitting up asn1 output
authorJohn Kohl <jtkohl@mit.edu>
Tue, 28 Aug 1990 16:34:57 +0000 (16:34 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 28 Aug 1990 16:34:57 +0000 (16:34 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1054 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/Imakefile

index a067dbc1762395ae388e75af451ed523e23e54e8..74fd102fffe9eae95187fa1e1dc1f5415e0a2987 100644 (file)
@@ -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