Annotation of 43BSDReno/contrib/isode-beta/others/mosy/Makefile, revision 1.1.1.1

1.1       root        1: ###############################################################################
                      2: #   Instructions to Make, for compilation of ISODE MOSY processes
                      3: ###############################################################################
                      4: 
                      5: ###############################################################################
                      6: #
                      7: # $Header: /f/osi/others/mosy/RCS/Makefile,v 7.3 90/07/09 14:39:59 mrose Exp $
                      8: #
                      9: #
                     10: # $Log:        Makefile,v $
                     11: # Revision 7.3  90/07/09  14:39:59  mrose
                     12: # sync
                     13: # 
                     14: # Revision 7.2  90/07/01  21:04:35  mrose
                     15: # pepsy
                     16: # 
                     17: # Revision 7.1  90/01/16  20:43:13  mrose
                     18: # last check-out
                     19: # 
                     20: # Revision 7.0  89/11/23  22:00:33  mrose
                     21: # Release 6.0
                     22: # 
                     23: ###############################################################################
                     24: 
                     25: ###############################################################################
                     26: #
                     27: #                               NOTICE
                     28: #
                     29: #    Acquisition, use, and distribution of this module and related
                     30: #    materials are subject to the restrictions of a license agreement.
                     31: #    Consult the Preface in the User's Manual for the full terms of
                     32: #    this agreement.
                     33: #
                     34: ###############################################################################
                     35: 
                     36: 
                     37: ###############################################################################
                     38: # Generation Rules for program modules
                     39: ###############################################################################
                     40: 
                     41: .SUFFIXES:     .c .o
                     42: 
                     43: .c.o:;         $(CC) $(CFLAGS) -c $*.c
                     44: 
                     45: 
                     46: ###############################################################################
                     47: # Programs and Libraries
                     48: ###############################################################################
                     49: 
                     50: LIBES   =      $(TOPDIR)libisode.a
                     51: LLIBS   =      $(TOPDIR)llib-lisode
                     52: 
                     53: 
                     54: ###############################################################################
                     55: # Files
                     56: ###############################################################################
                     57: 
                     58: HFILES =       mosy-defs.h 
                     59: YFILES =       yacc.y lex.l
                     60: MYFILES        =       smi.my mib.my
                     61: 
                     62: 
                     63: ##################################################################
                     64: # Here it is...
                     65: ##################################################################
                     66: 
                     67: all:           mosy objects
                     68: inst-all:      inst-mosy manuals
                     69: install:       inst-all clean
                     70: lint:          l-mosy
                     71: 
                     72: 
                     73: ##################################################################
                     74: # mosy
                     75: ##################################################################
                     76: 
                     77: inst-mosy:     $(BINDIR)mosy
                     78: 
                     79: $(BINDIR)mosy: xmosy
                     80:                -cp $@ zxmosy
                     81:                -rm -f $@
                     82:                cp xmosy $@
                     83:                -@ls -gls $@
                     84:                -@echo ""
                     85: 
                     86: mosy:          xmosy
                     87: 
                     88: xmosy:         mosyvrsn.o
                     89:                $(LDCC) $(LDFLAGS) -o $@ mosy.o yacc.o pepy_misc.o mosyvrsn.o \
                     90:                        $(LIBES) $(LSOCKET) -lm
                     91: 
                     92: mosy.o:                mosy.c $(HFILES)
                     93: 
                     94: pepy_misc.o:   $(TOPDIR)pepy/pepy_misc.c
                     95:                $(CC) $(CFLAGS) -c $?
                     96: 
                     97: mosyvrsn.c:    mosy.o yacc.o pepy_misc.o
                     98:                @$(UTILDIR)version.sh mosy > $@
                     99: 
                    100: yacc.o:                yacc.c lex.c $(HFILES)
                    101: 
                    102: yacc.c:                yacc.y
                    103:                yacc $(YACCFLAGS) yacc.y
                    104:                mv y.tab.c $@
                    105: 
                    106: yacc.y:                $(TOPDIR)pepsy/yacc.y.gnrc
                    107:                $(UTILDIR)extract.sh MOSY < $? > $@
                    108: 
                    109: lex.c:         lex.l
                    110:                $(LEX) $(LEXFLAGS) lex.l
                    111:                mv lex.yy.c $@
                    112: 
                    113: lex.l:         $(TOPDIR)pepsy/lex.l.gnrc
                    114:                $(UTILDIR)extract.sh MOSY < $? > $@
                    115: 
                    116: mosy-defs.h:   $(TOPDIR)pepsy/pepsy.h.gnrc
                    117:                $(UTILDIR)extract.sh MOSY < $? > $@
                    118: 
                    119: l-mosy:                yacc.c lex.c true
                    120:                $(LINT) -I$(TOPDIR)h $(LFLAGS) mosy.c yacc.c \
                    121:                    $(TOPDIR)pepy/pepy_misc.c mosyvrsn.c $(LLIBS)
                    122: 
                    123: 
                    124: ##################################################################
                    125: # objects
                    126: ##################################################################
                    127: 
                    128: objects:       objects.mib
                    129: 
                    130: objects.mib:   smi.defs mib.defs
                    131:                cat smi.defs mib.defs > objects.mib
                    132: 
                    133: smi.defs:      xmosy smi.my
                    134:                xmosy -m $(MYFLAGS) smi.my
                    135: 
                    136: mib.defs:      xmosy mib.my
                    137:                xmosy -m $(MYFLAGS) mib.my
                    138: 
                    139: 
                    140: ################################################################
                    141: # manual pages
                    142: ################################################################
                    143: 
                    144: MANUALS        =       mosy.1
                    145: 
                    146: manuals:;      @$(UTILDIR)inst-man.sh $(MANOPTS) $(MANUALS)
                    147:                -@echo ""
                    148: 
                    149: 
                    150: ################################################################
                    151: # clean
                    152: ################################################################
                    153: 
                    154: clean:;                rm -f *.o *.a x* z* _* core mosy-defs.h yacc.y yacc.c lex.l \
                    155:                        lex.c mosyvrsn.c *.defs *.mib
                    156: 
                    157: grind:;                iprint Makefile
                    158:                tgrind -lc $(HFILES) mosy.c mosyvrsn.c
                    159:                tgrind -ly $(YFILES)
                    160:                tgrind -lpepy -d $(TOPDIR)pepy/grindefs $(MYFILES)
                    161:                @echo $(MANUALS) | \
                    162:                        tr " " "\012" | \
                    163:                        sed -e "s%.*%itroff -man &%" | \
                    164:                        sh -ve
                    165: 
                    166: true:;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.