1# 2# Copyright (c) 1987 Regents of the University of California. 3# All rights reserved. The Berkeley software License Agreement 4# specifies the terms and conditions for redistribution. 5# 6# @(#)Makefile 4.3 (Berkeley) 06/18/87 7# 8CFLAGS= -O 9LIBC= /lib/libc.a 10SRCS= lmain.c parser.c sub1.c sub2.c header.c 11OBJS= lmain.o parser.o sub1.o sub2.o header.o 12 13all: lex 14 15lex: ${OBJS} ${LIBC} 16 ${CC} ${CFLAGS} ${OBJS} -o $@ 17 18smallex: ${SRCS} ${LIBC} FRC 19 ${CC} -DSMALL ${CFLAGS} ${SRCS} -o $@ 20 21clean: FRC 22 rm -f ${OBJS} core lex smallex parser.c 23 24depend: ${SRCS} FRC 25 mkdep ${CFLAGS} ${SRCS} 26 27install: FRC 28 install -s -o bin -g bin -m 755 lex ${DESTDIR}/usr/bin/lex 29 install -c -o bin -g bin -m 755 ncform ${DESTDIR}/usr/lib/lex/ncform 30 install -c -o bin -g bin -m 755 nrform ${DESTDIR}/usr/lib/lex/nrform 31 32lint: ${SRCS} FRC 33 lint ${CFLAGS} ${SRCS} 34 35tags: ${SRCS} FRC 36 ctags ${SRCS} 37 38FRC: 39 40# DO NOT DELETE THIS LINE -- mkdep uses it. 41# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 42 43lmain.o: lmain.c ldefs.c /usr/include/stdio.h once.c 44parser.o: parser.c ldefs.c /usr/include/stdio.h 45sub1.o: sub1.c ldefs.c /usr/include/stdio.h 46sub2.o: sub2.c ldefs.c /usr/include/stdio.h 47header.o: header.c ldefs.c /usr/include/stdio.h 48 49# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 50