new format makefile
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 3 Dec 1990 07:15:57 +0000 (23:15 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 3 Dec 1990 07:15:57 +0000 (23:15 -0800)
SCCS-vsn: sys/vax/inline/Makefile 7.2

usr/src/sys/vax/inline/Makefile

index 1a5ad74..cb7977c 100644 (file)
@@ -1,73 +1,8 @@
-#
-# Copyright (c) 1982, 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    7.1 (Berkeley) %G%
-#
-DESTDIR=
-CFLAGS=        -O
-INCPATH=-I.
-LFLAGS=        
+#      @(#)Makefile    7.2 (Berkeley) %G%
 
 
-# The program itself
-#
 PROG=  inline
 PROG=  inline
-
-# Sources
-#
+CFLAGS+=-Dvax
 SRCS=  main.c machdep.c machpats.c libcpats.c langpats.c
 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
-
-
-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
+.include <bsd.prog.mk>