From c14c45ebc88c7f10c78957c0c8d73f32c2cf95c1 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Wed, 5 Dec 1990 06:43:26 -0800 Subject: [PATCH] new style makefile SCCS-vsn: sys/tahoe/inline/Makefile 1.4 --- usr/src/sys/tahoe/inline/Makefile | 72 ++----------------------------- 1 file changed, 4 insertions(+), 68 deletions(-) diff --git a/usr/src/sys/tahoe/inline/Makefile b/usr/src/sys/tahoe/inline/Makefile index 5997285660..5951d1316a 100644 --- a/usr/src/sys/tahoe/inline/Makefile +++ b/usr/src/sys/tahoe/inline/Makefile @@ -1,73 +1,9 @@ -# -# Copyright (c) 1982 Regents of the University of California. -# All rights reserved. The Berkeley software License Agreement -# specifies the terms and conditions for redistribution. -# -# @(#)Makefile 1.3 (Berkeley) %G% -# -DESTDIR= -CFLAGS= -O -INCPATH=-I. -LFLAGS= +# @(#)Makefile 1.4 (Berkeley) %G% -# The program itself -# PROG= inline - -# Sources -# +CFLAGS+=-Dtahoe SRCS= main.c machdep.c machpats.c libcpats.c langpats.c +NOMAN= noman -# Objects -# -OBJS= main.o machdep.o machpats.o libcpats.o langpats.o - -# Header files -# -HDRS= inline.h - -${PROG}: ${OBJS} ${HDRS} - cc ${LFLAGS} -o ${PROG} ${OBJS} - -${OBJS}: - cc ${CFLAGS} ${INCPATH} -c $*.c - -install: ${PROG} -# install ${PROG} ../inline - -clean: - rm -f a.out core ${OBJS} ${PROG} - -print: - @pr ${HDRS} ${SRCS} - -lint: - lint ${SRCS} - -depend: - cc -M ${INCPATH} ${SRCS} | \ - awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ - else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ - else rec = rec " " $$2 } } \ - END { print rec } ' > makedep - echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep - echo '$$r makedep' >>eddep - echo 'w' >>eddep - cp Makefile Makefile.bak - ed - Makefile < eddep - rm eddep makedep - echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile - echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile - echo '# see make depend above' >> Makefile - -# DO NOT DELETE THIS LINE -- make depend uses it - +.include -main.o: main.c /usr/include/stdio.h /usr/include/ctype.h ./inline.h -machdep.o: machdep.c /usr/include/stdio.h /usr/include/ctype.h -machpats.o: machpats.c ./inline.h -libcpats.o: libcpats.c ./inline.h -langpats.o: langpats.c ./inline.h -# DEPENDENCIES MUST END AT END OF FILE -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above -- 2.20.1