File:  [Research Unix] / researchv8dc / cmd / cpp / Makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv8, HEAD
researchv8 Dan Cross

CFLAGS=-O -Dunix=1 -Dvax=1 -DFLEXNAMES -DMTIME

cpp :	cpp.o cpy.o rodata.o
	$(CC) $(CFLAGS) -o cpp rodata.o cpp.o cpy.o  

cpy.c : cpy.y
	yacc cpy.y
	:yyfix yyexca yyact yypact yypgo yyr1 yyr2 yychk yydef
	mv y.tab.c cpy.c
cpy.o :	cpy.c yylex.c
rodata.o : cpy.c
	$(CC) $(CFLAGS) -R -c rodata.c

clean :
	rm -f *.s *.o cpy.c rodata.c cpp y.tab.c

install :	cpp
	strip cpp
	mv cpp $(DESTDIR)/lib

test:
	rm -fr testdir
	mkdir testdir
	cp /lib/c2 /lib/ccom testdir
	make clean
	make cpp
	cp cpp testdir/cpp
	make clean
	make CFLAGS="${CFLAGS} -Btestdir/" cpp
	cp cpp testdir/cpp
	make clean
	make CFLAGS="${CFLAGS} -Btestdir/" cpp
	cmp cpp testdir/cpp
	rm -fr testdir

unix.superglobalmegacorp.com

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