new copyright notice
[unix-history] / usr / src / usr.bin / m4 / Makefile
index 2dd5e7d..d419048 100644 (file)
@@ -1,42 +1,11 @@
 Virgin BTL M4 as sent out in 4.1
 Virgin BTL M4 as sent out in 4.1
+#      @(#)Makefile    5.7 (Berkeley) %G%
 #
 #
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    5.3     (Berkeley)      %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  m4.c m4y.c
-OBJS=  m4.o m4y.o
-
-all: m4
-
-m4: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean: FRC
-       rm -f ${OBJS} core m4 m4y.c
-
-depend: ${SRCS} FRC
-       mkdep ${CFLAGS} ${SRCS}
-
-install: FRC
-       install -s -o bin -g bin -m 755 m4 ${DESTDIR}/usr/bin/m4
-
-lint: ${SRCS} FRC
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS} FRC
-       ctags ${SRCS}
-
-FRC:
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
+#      -DEXTENDED 
+#              if you want the paste & spaste macros.
 
 
-m4.o: m4.c /usr/include/stdio.h /usr/include/signal.h
-m4y.o: m4y.c
+PROG=  m4
+CFLAGS+=-DEXTENDED
+SRCS =  main.c eval.c serv.c look.c misc.c expr.c
 
 
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
+.include <bsd.prog.mk>