Annotation of 43BSDReno/contrib/isode-beta/rosy/Makefile, revision 1.1

1.1     ! root        1: ###############################################################################
        !             2: #   Instructions to Make, for compilation of ISODE ROSY processes
        !             3: ###############################################################################
        !             4: 
        !             5: ###############################################################################
        !             6: #
        !             7: # $Header: /f/osi/rosy/RCS/Makefile,v 7.3 90/07/27 08:47:32 mrose Exp $
        !             8: #
        !             9: #
        !            10: # $Log:        Makefile,v $
        !            11: # Revision 7.3  90/07/27  08:47:32  mrose
        !            12: # update
        !            13: # 
        !            14: # Revision 7.2  90/07/09  14:47:56  mrose
        !            15: # sync
        !            16: # 
        !            17: # Revision 7.1  90/07/01  21:06:17  mrose
        !            18: # pepsy
        !            19: # 
        !            20: # Revision 6.2  89/07/30  12:16:24  mrose
        !            21: # real
        !            22: # 
        !            23: # Revision 6.1  89/07/22  16:05:53  mrose
        !            24: # bsd44
        !            25: # 
        !            26: # Revision 6.0  89/03/18  23:42:35  mrose
        !            27: # Release 5.0
        !            28: # 
        !            29: ###############################################################################
        !            30: 
        !            31: ###############################################################################
        !            32: #
        !            33: #                               NOTICE
        !            34: #
        !            35: #    Acquisition, use, and distribution of this module and related
        !            36: #    materials are subject to the restrictions of a license agreement.
        !            37: #    Consult the Preface in the User's Manual for the full terms of
        !            38: #    this agreement.
        !            39: #
        !            40: ###############################################################################
        !            41: 
        !            42: .SUFFIXES:     .ry .py .c .o
        !            43: 
        !            44: .ry.py:;       ./xrosy $(RYFLAGS) $<
        !            45: 
        !            46: 
        !            47: PEPYLIBES=     $(TOPDIR)psap/sprintoid.o \
        !            48:                $(TOPDIR)psap/oid_cmp.o $(TOPDIR)psap/oid_cpy.o \
        !            49:                $(TOPDIR)psap/oid_free.o \
        !            50:                $(TOPDIR)compat/asprintf.o $(TOPDIR)compat/serror.o \
        !            51:                $(TOPDIR)compat/sprintb.o $(TOPDIR)compat/sstr2arg.o
        !            52: LIBES   =      $(TOPDIR)libpsap.a $(TOPDIR)libcompat.a
        !            53: LLIBS   =      $(TOPDIR)llib-lpsap $(TOPDIR)llib-lcompat
        !            54: HFILES =       $(HDIR)rosy.h $(HDIR)rosap.h $(HDIR)acsap.h $(HDIR)psap2.h \
        !            55:                $(HDIR)psap.h $(HDIR)ssap.h $(HDIR)isoaddrs.h \
        !            56:                $(HDIR)manifest.h $(HDIR)general.h $(HDIR)config.h
        !            57: PEPSYFILES=    $(HDIR)pepsy.h $(TOPDIR)pepsy/xpepsy
        !            58: RYHFILES=      rosy-defs.h $(HDIR)psap.h \
        !            59:                $(HDIR)manifest.h $(HDIR)general.h $(HDIR)config.h
        !            60: 
        !            61: 
        !            62: ##################################################################
        !            63: # Here it is...
        !            64: ##################################################################
        !            65: 
        !            66: all:           rosy librosy
        !            67: inst-all:      inst-rosy manuals # inst-librosy
        !            68: install:       inst-all clean
        !            69: lint:          l-rosy l-librosy
        !            70: 
        !            71: 
        !            72: ##################################################################
        !            73: # rosy
        !            74: ##################################################################
        !            75: 
        !            76: inst-rosy:     $(BINDIR)rosy
        !            77: 
        !            78: $(BINDIR)rosy: xrosy
        !            79:                -cp $@ zxrosy
        !            80:                -rm -f $@
        !            81:                cp xrosy $@
        !            82:                -@ls -gls $@
        !            83:                -@echo ""
        !            84: 
        !            85: rosy:          xrosy
        !            86: 
        !            87: xrosy:         rosyvrsn.o $(PEPYLIBES)
        !            88:                $(LDCC) $(LDFLAGS) -o $@ rosy.o yacc.o pepsy_misc.o \
        !            89:                        rosyvrsn.o $(PEPYLIBES) $(LSOCKET) -lm
        !            90: 
        !            91: rosy.o:                rosy.c $(RYHFILES)
        !            92:                $(CC) $(CFLAGS) -c $*.c
        !            93: 
        !            94: pepsy_misc.o:  $(TOPDIR)pepsy/pepsy_misc.c
        !            95:                $(CC) $(CFLAGS) -c $?
        !            96: 
        !            97: rosyvrsn.c:    rosy.o yacc.o pepsy_misc.o
        !            98:                @$(UTILDIR)version.sh rosy > $@
        !            99: 
        !           100: yacc.o:                yacc.c lex.c $(RYHFILES)
        !           101:                $(CC) $(CFLAGS) -c $*.c
        !           102: 
        !           103: yacc.c:                yacc.y
        !           104:                -@echo "expect 20 shift/reduce and 9 reduce/reduce conflicts"
        !           105:                yacc $(YACCFLAGS) yacc.y
        !           106:                mv y.tab.c $@
        !           107: 
        !           108: yacc.y:                $(TOPDIR)pepsy/yacc.y.gnrc
        !           109:                $(UTILDIR)extract.sh ROSY < $? > $@
        !           110: 
        !           111: lex.c:         lex.l
        !           112:                $(LEX) $(LEXFLAGS) lex.l
        !           113:                mv lex.yy.c $@
        !           114: 
        !           115: lex.l:         $(TOPDIR)pepsy/lex.l.gnrc
        !           116:                $(UTILDIR)extract.sh ROSY < $? > $@
        !           117: 
        !           118: rosy-defs.h:   $(TOPDIR)pepsy/pepsy.h.gnrc
        !           119:                $(UTILDIR)extract.sh ROSY < $? > $@
        !           120: 
        !           121: l-rosy:                yacc.c lex.c true
        !           122:                $(LINT) $(LFLAGS) rosy.c yacc.c $(TOPDIR)pepsy/pepsy_misc.c rosyvrsn.c \
        !           123:                        $(LLIBS)
        !           124: 
        !           125: 
        !           126: ################################################################
        !           127: # librosy
        !           128: ################################################################
        !           129: 
        !           130: CFILES =       rystub.c rydiscard.c ryoperation.c ryopinvoke.c rygenid.c \
        !           131:                rydispatch.c rydsresult.c rydserror.c rydsureject.c \
        !           132:                rywait.c ryopblock.c rydsblock.c ryfind.c rylose.c
        !           133: 
        !           134: # pepsy based rosy library routines
        !           135: P-OFILES=      p-rystub.o p-rydiscard.o p-ryoperation.o p-ryopinvoke.o \
        !           136:                p-rygenid.o p-rydispatch.o p-rydsresult.o p-rydserror.o \
        !           137:                p-rydsureject.o p-rywait.o p-ryopblock.o p-rydsblock.o \
        !           138:                p-ryfind.o p-rylose.o
        !           139: 
        !           140: # (old) normal rosy library routines
        !           141: N-OFILES=      rystub.o rydiscard.o ryoperation.o ryopinvoke.o \
        !           142:                rygenid.o rydispatch.o rydsresult.o rydserror.o \
        !           143:                rydsureject.o rywait.o ryopblock.o rydsblock.o \
        !           144:                ryfind.o rylose.o
        !           145: 
        !           146: OFILES=                $(P-OFILES) $(N-OFILES) $(OSTRINGS)
        !           147: 
        !           148: inst-librosy:  $(LIBDIR)librosy.a $(LINTDIR)llib-lrosy
        !           149: 
        !           150: $(LIBDIR)librosy.a:    librosy.a
        !           151:                -rm -f $@
        !           152:                cp librosy.a $@
        !           153:                @$(UTILDIR)make-lib.sh $(SYSTEM) $@ -ranlib
        !           154:                -@ls -gls $@
        !           155:                -@echo ""
        !           156: 
        !           157: $(LINTDIR)llib-lrosy:  llib-lrosy
        !           158:                -cp $@ zllib-lrosy
        !           159:                -rm -f $@
        !           160:                sed -e 's%#include "\(.*\)"%#include "$(INCDIR)\1"%' \
        !           161:                        < llib-lrosy | \
        !           162:                        sed -e 's%#include "/usr/include/\(.*\)"%#include <\1>%' > $@
        !           163:                @$(UTILDIR)inst-lint.sh $(SYSTEM) $(OPTIONS) $@
        !           164:                -@ls -gls $@ [email protected]
        !           165:                -@echo ""
        !           166: 
        !           167: librosy:       librosy.a
        !           168: 
        !           169: librosy.a:     $(OFILES)
        !           170:                -rm -f $@
        !           171:                @$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(OFILES)
        !           172:                -@rm -f $(TOPDIR)librosy.a $(TOPDIR)llib-lrosy
        !           173:                -@$(LN) librosy.a $(TOPDIR)librosy.a
        !           174:                -@$(LN) llib-lrosy $(TOPDIR)llib-lrosy
        !           175:                -@ls -l $@
        !           176:                -@echo "ROSY library built normally"
        !           177: 
        !           178: l-librosy:     $(CFILES) true
        !           179:                $(LINT) $(LFLAGS) $(CFILES) $(TOPDIR)llib-lrosap $(LLIBS)
        !           180: 
        !           181: p-rydiscard.o: $(HFILES) $(PEPSYFILES) rydiscard.c
        !           182:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ rydiscard.c 
        !           183: 
        !           184: p-rygenid.o:   $(HFILES) $(PEPSYFILES) rygenid.c
        !           185:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ rygenid.c
        !           186: 
        !           187: p-rystub.o:    $(HFILES) $(PEPSYFILES) rystub.c
        !           188:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ rystub.c
        !           189: 
        !           190: p-rywait.o:    $(HFILES) $(PEPSYFILES) rywait.c
        !           191:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ rywait.c
        !           192: 
        !           193: p-ryoperation.o: $(HFILES) $(PEPSYFILES) ryoperation.c
        !           194:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ ryoperation.c
        !           195: 
        !           196: p-ryopinvoke.o: $(HFILES) $(PEPSYFILES) ryopinvoke.c
        !           197:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ ryopinvoke.c
        !           198: 
        !           199: p-rydispatch.o:        $(HFILES) $(PEPSYFILES) rydispatch.c
        !           200:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ rydispatch.c
        !           201: 
        !           202: p-rydsresult.o:        $(HFILES) $(PEPSYFILES) rydsresult.c
        !           203:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ rydsresult.c
        !           204: 
        !           205: p-rydserror.o: $(HFILES) $(PEPSYFILES) rydserror.c
        !           206:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ rydserror.c
        !           207: 
        !           208: p-rydsureject.o: $(HFILES) $(PEPSYFILES) rydsureject.c
        !           209:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ rydsureject.c
        !           210: 
        !           211: p-ryopblock.o: $(HFILES) $(PEPSYFILES) ryopblock.c
        !           212:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ ryopblock.c
        !           213: 
        !           214: p-rydsblock.o: $(HFILES) $(PEPSYFILES) rydsblock.c
        !           215:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ rydsblock.c
        !           216: 
        !           217: p-ryfind.o:    $(HFILES) $(PEPSYFILES) ryfind.c
        !           218:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ ryfind.c
        !           219: 
        !           220: p-rylose.o:    $(HFILES) $(PEPSYFILES) rylose.c
        !           221:                $(CC) $(LIBCFLAGS) -c -DPEPSY_VERSION=1 -o $@ rylose.c
        !           222: 
        !           223: 
        !           224: rystub.o:      $(HFILES)
        !           225: rydiscard.o:   $(HFILES)
        !           226: ryoperation.o: $(HFILES)
        !           227: ryopinvoke.o:  $(HFILES)
        !           228: rygenid.o:     $(HFILES)
        !           229: rydispatch.o:  $(HFILES)
        !           230: rydsresult.o:  $(HFILES)
        !           231: rydserror.o:   $(HFILES)
        !           232: rydsureject.o: $(HFILES)
        !           233: rywait.o:      $(HFILES)
        !           234: ryopblock.o:   $(HFILES)
        !           235: rydsblock.o:   $(HFILES)
        !           236: ryfind.o:      $(HFILES)
        !           237: rylose.o:      $(HFILES)
        !           238: 
        !           239: true:;
        !           240: 
        !           241: 
        !           242: ################################################################
        !           243: # manual pages
        !           244: ################################################################
        !           245: 
        !           246: MANUALS        =       rosy.1 # librosy.3n
        !           247: 
        !           248: manuals:;      @$(UTILDIR)inst-man.sh $(MANOPTS) $(MANUALS)
        !           249:                -@echo ""
        !           250: 
        !           251: 
        !           252: ################################################################
        !           253: # clean
        !           254: ################################################################
        !           255: 
        !           256: clean:;                rm -f *.o *.a x* z* _* core rosy-defs.h yacc.y yacc.c lex.l \
        !           257:                        lex.c rosyvrsn.c
        !           258: 
        !           259: grind:;                iprint Makefile
        !           260:                tgrind -lc rosy-defs.h rosy.c rosyvrsn.c
        !           261:                tgrind -ly yacc.y lex.l
        !           262:                tgrind -lc $(CFILES) llib-lrosy
        !           263:                @echo $(MANUALS) | \
        !           264:                        tr " " "\012" | \
        !           265:                        sed -e "s%.*%itroff -man &%" | \
        !           266:                        sh -ve

unix.superglobalmegacorp.com

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