|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: M T
Length: 5562 (0x15ba) Types: TextFile Names: »Makefile«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« └─⟦d3ac74d73⟧ └─⟦this⟧ »isode-5.0/others/mosy/Makefile«
############################################################################### # Instructions to Make, for compilation of ISODE MOSY processes ############################################################################### ############################################################################### # # $Header: /f/osi/others/mosy/RCS/Makefile,v 6.0 89/03/18 23:35:54 mrose Rel $ # # # $Log: Makefile,v $ # Revision 6.0 89/03/18 23:35:54 mrose # Release 5.0 # ############################################################################### ############################################################################### # # NOTICE # # Acquisition, use, and distribution of this module and related # materials are subject to the restrictions of a license agreement. # Consult the Preface in the User's Manual for the full terms of # this agreement. # ############################################################################### ############################################################################### # Generation Rules for program modules ############################################################################### .SUFFIXES: .my .py .c .o .my.py:; xmosy -m $(MYFLAGS) $< .py.c:; pepy -a PY_advise $(PYFLAGS) $< .c.o:; $(CC) $(CFLAGS) -c $*.c ############################################################################### # Programs and Libraries ############################################################################### LIBES = -lisode LLIBS = -lisode ############################################################################### # Files ############################################################################### HFILES = mosy-defs.h CFILES = readobjects.c YFILES = yacc.y lex.l MYFILES = smi.my mib.my ################################################################## # Here it is... ################################################################## all: mosy libmib inst-all: inst-mosy inst-libmib manuals install: inst-all clean lint: l-mosy l-libmib ################################################################## # mosy ################################################################## inst-mosy: $(BINDIR)mosy $(BINDIR)mosy: xmosy -cp $@ zxmosy -rm -f $@ cp xmosy $@ -@ls -gls $@ -@echo "" mosy: xmosy xmosy: mosyvrsn.o $(LDCC) $(LDFLAGS) -o $@ mosy.o yacc.o pepy_misc.o mosyvrsn.o \ $(LIBES) $(LSOCKET) mosy.o: mosy.c $(HFILES) pepy_misc.o: $(TOPDIR)pepy/pepy_misc.c $(CC) $(CFLAGS) -c $? mosyvrsn.c: mosy.o yacc.o pepy_misc.o @$(UTILDIR)version.sh mosy > $@ yacc.o: yacc.c lex.c $(HFILES) yacc.c: yacc.y yacc $(YACCFLAGS) yacc.y mv y.tab.c $@ yacc.y: $(TOPDIR)pepy/yacc.y.gnrc $(UTILDIR)extract.sh MOSY < $? > $@ lex.c: lex.l lex $(LEXFLAGS) lex.l mv lex.yy.c $@ lex.l: $(TOPDIR)pepy/lex.l.gnrc $(UTILDIR)extract.sh MOSY < $? > $@ mosy-defs.h: $(TOPDIR)pepy/pepy.h.gnrc $(UTILDIR)extract.sh MOSY < $? > $@ l-mosy: yacc.c lex.c true $(LINT) -I$(TOPDIR)h $(LFLAGS) mosy.c yacc.c \ $(TOPDIR)pepy/pepy_misc.c mosyvrsn.c $(LLIBS) ################################################################ # libmib ################################################################ CFILES = SMI-types.c SMI-print.c SMI-objects.c \ MIB-types.c MIB-print.c MIB-objects.c \ readobjects.c OFILES = SMI-types.o SMI-print.o SMI-objects.o \ MIB-types.o MIB-print.o MIB-objects.o \ readobjects.o HEADERS = SMI-types.h MIB-types.h SMI.ph MIB.ph inst-libmib: $(LIBDIR)libmib.a inst-headers $(LIBDIR)libmib.a: libmib.a -rm -f $@ cp libmib.a $@ @$(UTILDIR)make-lib.sh $(SYSTEM) $@ -ranlib -@ls -gls $@ -@echo "" inst-headers: $(INCDIR)mosy.h true @for h in $(HEADERS); do $(MAKE) TARGET=$$h inst-target; done $(INCDIR)mosy.h: mosy.h -cp $@ zmosy.h cp mosy.h $@ -@ls -gls $@ -@echo "" inst-target: $(PEPYDIR)$(TARGET) $(PEPYDIR)$(TARGET): $(TARGET) -cp $@ z$(TARGET) cp $(TARGET) $@ -@ls -gls $@ -@echo "" libmib: libmib.a libmib.a: $(OFILES) @$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(OFILES) -@ls -l $@ -@echo "MIB library built normally" l-libmib: $(CFILES) true $(LINT) $(LFLAGS) $(CFILES) $(LLIBS) SMI-types.o: SMI-types.h SMI-types.c: SMI-types.py SMI-types.h: smi.py posy -f -h -o SMI-types.py smi.py SMI-types.py: smi.py SMI-objects.o: SMI-types.h SMI-objects.c: smi.my xmosy xmosy -m $(MYFLAGS) -m smi.my SMI-print.c: smi.py pepy -a PY_advise -d -S PRINT -o $@ $(PYFLAGS) smi.py MIB-types.o: MIB-types.h MIB-types.c: MIB-types.py MIB-types.h: mib.py posy -f -h -o MIB-types.py mib.py MIB-types.py: mib.py MIB-objects.o: MIB-types.h MIB-objects.c: mib.my xmosy xmosy -m $(MYFLAGS) -m mib.my MIB-print.c: mib.py pepy -a PY_advise -d -S PRINT -o $@ $(PYFLAGS) mib.py ################################################################ # manual pages ################################################################ MANUALS = mosy.1 # libmib.3n manuals:; @$(UTILDIR)inst-man.sh $(MANOPTS) $(MANUALS) -@echo "" ################################################################ # clean ################################################################ clean:; rm -f *.o *.a x* z* _* core mosy-defs.h yacc.y yacc.c lex.l \ lex.c mosyvrsn.c *.ph MIB-* mib.py SMI-* smi.py grind:; iprint Makefile tgrind -lc $(HFILES) mosy.c mosyvrsn.c tgrind -ly $(YFILES) tgrind -lpepy -d $(TOPDIR)pepy/grindefs $(MYFILES) tgrind -lc $(CFILES) @echo $(MANUALS) | \ tr " " "\012" | \ sed -e "s%.*%itroff -man &%" | \ sh -ve true:;