File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / d / ether / Makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (6 years, 11 months ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b


#
#  HDRS		included files
#
#  SRCS		source files
#
DESTDIR=
AS=/bin/as
CC=/bin/cc
LCC=/bin/cc
LD=/bin/ld
INCLDIR=${DESTDIR}/usr/include
LIBDIR=${DESTDIR}/lib
ULIBDIR=${DESTDIR}/usr/lib

HDRS1 = prvreg.h psl.h pte.h pcboffset.h const.h scboffset.h \
 	sptoffset.h trap.h veiu.h mtpr.h

LD_FLG =  -T 0

.SUFFIXES:
.SUFFIXES: .x .s .o .c .lst 

.x.o:
	cat $*.x | sed 's/^#\([^id]\)/ #\1/' | /lib/cpp | $(AS) -o $*.o
.x.s:
	cat $*.x | sed 's/^#\([^id]\)/ #\1/' | /lib/cpp > $*.s

.s.o:
	cat INCLUDE $*.s | $(AS) -o $*.o

.c.s:	
	$(CC) -S $*.c
.c.o:	
	$(CC) -c $*.c

SYS   =  init.o sys.o buser.o bio.o cp.o spl.o 
PROC0 =  veiu.o
LISTS =  init.lst sys.lst buser.lst bio.lst cp.lst multi.lst veiu.lst spl.lst
TESTS =  $(SYS) $(PROC0) 

all 	: ether

object  : ether.st ether a.sym ether.sf

clean	: 
	-rm *.o *.lst a.sym *.st *.sf ether a.out

cleansrc:
	rm -f *.[csh] *.def init.x definitions INCLUDE makefile

ether.st  : $(TESTS)
	    $(LD)  $(LD_FLG) -N -x -o ether.st $(TESTS) 

ether  : ether.st
	cp ether.st $$ether.st
	strip $$ether.st
	dd if=ether.st of=ether skip=1 bs=2080 
	rm -rf $$ether.st

install:	all
	install -c ether $(DESTDIR)/d/ether

#End of makefile

unix.superglobalmegacorp.com

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