new template
[unix-history] / usr / src / usr.bin / pascal / eyacc / Makefile
index b327a8b..3317416 100644 (file)
@@ -5,26 +5,41 @@
 #
 #      @(#)Makefile    5.2 (Berkeley) %G%
 #
 #
 #      @(#)Makefile    5.2 (Berkeley) %G%
 #
-INSTALLDIR = ${DESTDIR}/usr/ucb
+CFLAGS=        -O
+LIBC=  /lib/libc.a
+SRCS=  ey0.c ey1.c ey2.c ey3.c ey4.c ey5.c
+OBJS=  ey0.o ey1.o ey2.o ey3.o ey4.o ey5.o
 
 
-eyacc: ey0.o ey1.o ey2.o ey3.o ey4.o ey5.o
-       cc -o eyacc -z ey0.o ey1.o ey2.o ey3.o ey4.o ey5.o
+all: eyacc
 
 
-.c.o:
-       cc -O -c $*.c
+eyacc: ${LIBC} ${OBJS}
+       ${CC} ${CFLAGS} -o $@ -z ${OBJS}
 
 
-clean:
-       -rm -f *.o eyacc
+clean: FRC
+       rm -f ${OBJS} core eyacc
 
 
-install: eyacc
-#      cp eyacc ${INSTALLDIR}/eyacc
+depend: FRC
+       mkdep ${CFLAGS} ${SRCS}
 
 
-print:
-       @ls -l | pr
-       @pr READ_ME makefile
-       @pr ey.h ey0.c ey1.c ey2.c ey3.c ey4.c ey5.c
+install: FRC
+#      install -s -o bin -g bin -m 755 eyacc ${DESTDIR}/usr/ucb/eyacc
 
 
-ey1.o: ey.h
-ey2.o: ey.h
-ey3.o: ey.h
-ey4.o: ey.h
+lint: FRC
+       lint ${CFLAGS} ${SRCS}
+
+tags: FRC
+       ctags ${SRCS}
+
+FRC:
+
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
+
+ey0.o: ey0.c /usr/include/stdio.h
+ey1.o: ey1.c ey.h /usr/include/stdio.h
+ey2.o: ey2.c ey.h /usr/include/stdio.h
+ey3.o: ey3.c ey.h /usr/include/stdio.h
+ey4.o: ey4.c ey.h /usr/include/stdio.h
+ey5.o: ey5.c /usr/include/stdio.h
+
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY