DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: M T

⟦decb97865⟧ TextFile

    Length: 4115 (0x1013)
    Types: TextFile
    Names: »Makefile«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« 
        └─⟦de7628f85⟧ 
            └─⟦this⟧ »isode-6.0/others/mosy/Makefile« 

TextFile

###############################################################################
#   Instructions to Make, for compilation of ISODE MOSY processes
###############################################################################

###############################################################################
#
# $Header: /f/osi/others/mosy/RCS/Makefile,v 7.1 90/01/16 20:43:13 mrose Exp $
#
#
# $Log:	Makefile,v $
# Revision 7.1  90/01/16  20:43:13  mrose
# last check-out
# 
# Revision 7.0  89/11/23  22:00:33  mrose
# Release 6.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:	.c .o

.c.o:;		$(CC) $(CFLAGS) -c $*.c


###############################################################################
# Programs and Libraries
###############################################################################

LIBES   =	$(TOPDIR)libisode.a
LLIBS   =	$(TOPDIR)llib-lisode


###############################################################################
# Files
###############################################################################

HFILES	=	mosy-defs.h 
YFILES	=	yacc.y lex.l
MYFILES	=	smi.my mib.my


##################################################################
# Here it is...
##################################################################

all:		mosy objects
inst-all:	inst-mosy manuals
install:	inst-all clean
lint:		l-mosy


##################################################################
# 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) -lm

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)


##################################################################
# objects
##################################################################

objects:	objects.mib

objects.mib:	smi.defs mib.defs
		cat smi.defs mib.defs > objects.mib

smi.defs:	xmosy smi.my
		xmosy -m $(MYFLAGS) smi.my

mib.defs:	xmosy mib.my
		xmosy -m $(MYFLAGS) mib.my


################################################################
# manual pages
################################################################

MANUALS	=	mosy.1

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 *.defs *.mib

grind:;		iprint Makefile
		tgrind -lc $(HFILES) mosy.c mosyvrsn.c
		tgrind -ly $(YFILES)
		tgrind -lpepy -d $(TOPDIR)pepy/grindefs $(MYFILES)
		@echo $(MANUALS) | \
			tr " " "\012" | \
			sed -e "s%.*%itroff -man &%" | \
			sh -ve

true:;