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

⟦12bdbba54⟧ TextFile

    Length: 4614 (0x1206)
    Types: TextFile
    Names: »Makefile«

Derivation

└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
    └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« 
        └─⟦d3ac74d73⟧ 
            └─⟦this⟧ »isode-5.0/osh/Makefile« 

TextFile

###############################################################################
#   Instructions to Make, for compilation of OSI shell
###############################################################################

###############################################################################
#
# $Header: /f/osi/osh/RCS/Makefile,v 6.0 89/03/18 23:33:27 mrose Rel $
#
#
# $Log:	Makefile,v $
# Revision 6.0  89/03/18  23:33:27  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:	.ry .py .c .o

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

.py.c:;		$(TOPDIR)pepy/xpepy -m $(PYFLAGS) $<


LIBES	=	libshell.a $(TOPDIR)libisode.a
LLIBS   =	$(TOPDIR)llib-lisode
CFILES	=	oshd.c osh.c ../imisc/ryresponder.c
RYFILES	=	osh.ry
HFILES	=	../imisc/ryresponder.h


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

all:		oshd osh
inst-all:	inst-oshd inst-osh manuals
install:	inst-all clean
lint:		l-oshd l-osh


##################################################################
# oshd
##################################################################

inst-oshd:	$(ETCDIR)ros.osh

$(ETCDIR)ros.osh:	oshd
		-cp $@ zros.osh
		-rm -f $@
		cp oshd $@
		-@ls -gls $@
		-@echo ""

oshd:		oshd.o SHELL-Rops.o ryresponder.o $(LIBES)
		$(LDCC) $(LDFLAGS) -o $@ oshd.o \
			SHELL-Rops.o ryresponder.o $(LIBES) $(LSOCKET)

l-oshd:		SHELL-ops.c SHELL-C true
		$(LINT) $(LFLAGS) -DPERFORMER -DINVOKER oshd.c \
			SHELL-ops.c ../imisc/ryresponder.c \
			$(SHELL-C) $(LLIBS)

oshd.o:		../imisc/ryresponder.h SHELL-ops.h SHELL-types.h

SHELL-Rops.o:	SHELL-ops.c SHELL-ops.h
		$(CC) $(CFLAGS) -DPERFORMER -DINVOKER -c SHELL-ops.c
		mv SHELL-ops.o $@

ryresponder.o:	../imisc/ryresponder.h ../imisc/ryresponder.c
		$(CC) $(CFLAGS) -c ../imisc/ryresponder.c


##################################################################
# osh
##################################################################

inst-osh:	$(BINDIR)osh

$(BINDIR)osh:	osh
		-cp $@ zosh
		-rm -f $@
		cp osh $@
		-@ls -gls $@
		-@echo ""

osh:		osh.o SHELL-Iops.o $(LIBES)
		$(LDCC) $(LDFLAGS) -o $@ osh.o SHELL-Iops.o $(LIBES) $(LSOCKET)

l-osh:		SHELL-ops.c SHELL-C true
		$(LINT) $(LFLAGS) -DINVOKER -DPERFORMER osh.c SHELL-ops.c \
			$(SHELL-C) SHELL-stubs.c \
			$(LLIBS)

osh.o:		SHELL-ops.h SHELL-types.h

SHELL-Iops.o:	SHELL-ops.c SHELL-ops.h
		$(CC) $(CFLAGS) -DINVOKER -DPERFORMER -c SHELL-ops.c
		mv SHELL-ops.o $@


################################################################
# libshell
################################################################

libshell.a:	SHELL-O
		-rm -f $@
		@$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(SHELL-O) 
		-@ls -l $@
		-@echo "SHELL library built normally"

SHELL-O =	SHELL-[0-9]*.o
SHELL-C =	SHELL-[0-9]*.c

SHELL-O:	SHELL-C
		@$(MAKE) `/bin/ls $(SHELL-C) | sed 's/\.c$$/.o/'`
		-@touch $@

SHELL-C:	SHELL-types.py
		-@rm -f $(SHELL-C) $(SHELL-O)
		$(TOPDIR)pepy/xpepy -a ryr_advise -m -A -b SHELL $(PYFLAGS) \
			SHELL-types.py
		-@touch $@

SHELL-types.py:	SHELL-asn.py
		$(TOPDIR)pepy/xposy -f -h -m -o $@ $(POFLAGS) SHELL-asn.py
SHELL-types.h:	SHELL-types.py

SHELL-asn.py:	osh.ry
		$(TOPDIR)rosy/xrosy -m $(RYFLAGS) -o $@ osh.ry
SHELL-ops.c:	osh.ry
SHELL-ops.h:	osh.ry
SHELL-stubs.c:	osh.ry


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

MANUALS	=	oshd.8c osh.1c oshusers.5

manuals:;	@$(UTILDIR)inst-man.sh $(MANOPTS) $(MANUALS)
		-@echo ""


################################################################
# clean
################################################################

clean:;		rm -f *.o *.a SHELL* oshd osh z* _* core

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

true:;