File:  [Research Unix] / researchv9 / cmd / lex / 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, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

all: lex

lex: lmain.o y.tab.o sub1.o sub2.o header.o
	cc lmain.o y.tab.o sub1.o sub2.o header.o -o lex

smallex:
	cc -DSMALL lmain.c y.tab.c sub1.c sub2.c header.c -o smallex

y.tab.c: parser.y
	yacc parser.y
lmain.o:lmain.c ldefs.c once.c
	cc -c lmain.c
sub1.o: sub1.c ldefs.c
	cc -c sub1.c
sub2.o: sub2.c ldefs.c
	cc -c sub2.c
header.o: header.c ldefs.c
	cc -c header.c

install: all
	strip lex
	mv lex $(DESTDIR)/usr/bin
	cp ncform $(DESTDIR)/usr/lib/lex

clean:
	rm -f *.o lex y.tab.c

unix.superglobalmegacorp.com

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