pretend bi's connect to nexi; delete unnecessary keywords
[unix-history] / usr / src / usr.sbin / config / Makefile
index 28440e9..2b24293 100644 (file)
@@ -1,28 +1,74 @@
 #
 #
-#      Makefile        1.8     82/12/09
+# Copyright (c) 1987 Regents of the University of California.
+# All rights reserved.
 #
 #
-CFILES=        y.tab.c main.c lex.yy.c mkioconf.c mkmakefile.c mkubglue.c mkheaders.c
-OBJS=  y.tab.o main.o lex.yy.o mkioconf.o mkmakefile.o mkubglue.o mkheaders.o
+# Redistribution and use in source and binary forms are permitted
+# provided that this notice is preserved and that due credit is given
+# to the University of California at Berkeley. The name of the University
+# may not be used to endorse or promote products derived from this
+# software without specific prior written permission. This software
+# is provided ``as is'' without express or implied warranty.
+#
+#      @(#)Makefile    5.6 (Berkeley) %G%
+#
+CFLAGS=        -O
+LIBC=  /lib/libc.a
+LIBS=  -ll
+SRCS=  y.tab.c main.c lex.yy.c mkioconf.c mkmakefile.c \
+       mkglue.c mkheaders.c mkswapconf.c
+OBJS=  y.tab.o main.o lex.yy.o mkioconf.o mkmakefile.o \
+       mkglue.o mkheaders.o mkswapconf.o
 
 
-CFLAGS=-O
-LDFLAGS=-ll
+all: config
 
 
-config: ${OBJS}
-       ${CC} ${OBJS} -o config ${LDFLAGS}
+config: ${OBJS} ${LIBC}
+       ${CC} -o $@ ${OBJS} ${LIBS}
 
 lex.yy.c: config.l
        lex config.l
 
 
 lex.yy.c: config.l
        lex config.l
 
-y.tab.o: y.tab.c
+y.tab.h: 
+       yacc -d config.y
 
 y.tab.c: config.y
 
 y.tab.c: config.y
-       yacc -d config.y
+       yacc config.y
+
+clean: FRC
+       rm -f ${OBJS} lex.yy.c y.tab.c y.tab.h config core
+
+depend: y.tab.h ${SRCS} FRC
+       mkdep ${CFLAGS} ${SRCS}
+
+install: FRC
+       install -s -o bin -g bin -m 755 config ${DESTDIR}/etc/config
+
+lint: FRC
+       lint ${CFLAGS} ${SRCS}
+
+tags: FRC
+       ctags ${SRCS}
+
+FRC:
 
 
-clean:
-       rm -f ${OBJS} lex.yy.c y.tab.c y.tab.h config
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
 
 
-install:
-       install config ${DESTDIR}/etc/config
+y.tab.o: y.tab.c config.h /usr/include/sys/types.h /usr/include/ctype.h
+y.tab.o: /usr/include/stdio.h
+main.o: main.c /usr/include/sys/types.h /usr/include/sys/stat.h
+main.o: /usr/include/sys/file.h /usr/include/stdio.h /usr/include/ctype.h
+main.o: y.tab.h config.h /usr/include/sys/types.h
+lex.yy.o: lex.yy.c /usr/include/stdio.h /usr/include/ctype.h y.tab.h config.h
+lex.yy.o: /usr/include/sys/types.h
+mkioconf.o: mkioconf.c /usr/include/stdio.h y.tab.h config.h
+mkioconf.o: /usr/include/sys/types.h
+mkmakefile.o: mkmakefile.c /usr/include/stdio.h /usr/include/ctype.h y.tab.h
+mkmakefile.o: config.h /usr/include/sys/types.h
+mkglue.o: mkglue.c /usr/include/stdio.h config.h /usr/include/sys/types.h
+mkglue.o: y.tab.h /usr/include/ctype.h
+mkheaders.o: mkheaders.c /usr/include/stdio.h /usr/include/ctype.h config.h
+mkheaders.o: /usr/include/sys/types.h y.tab.h
+mkswapconf.o: mkswapconf.c config.h /usr/include/sys/types.h
+mkswapconf.o: /usr/include/stdio.h /usr/include/ctype.h
 
 
-lint: ${CFILES}
-       lint ${CFILES}
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY