Commit | Line | Data |
---|---|---|
cd68466f | 1 | # |
b8c620d6 | 2 | # Copyright (c) 1988 Regents of the University of California. |
86f9c1e9 | 3 | # All rights reserved. |
cd68466f | 4 | # |
86f9c1e9 | 5 | # Redistribution and use in source and binary forms are permitted |
b8c620d6 KB |
6 | # provided that the above copyright notice and this paragraph are |
7 | # duplicated in all such forms and that any documentation, | |
8 | # advertising materials, and other materials related to such | |
9 | # distribution and use acknowledge that the software was developed | |
10 | # by the University of California, Berkeley. The name of the | |
11 | # University may not be used to endorse or promote products derived | |
12 | # from this software without specific prior written permission. | |
13 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
86f9c1e9 | 16 | # |
486dd6df | 17 | # @(#)Makefile 5.8 (Berkeley) %G% |
cd68466f | 18 | # |
d2748719 KB |
19 | CFLAGS= -O |
20 | LIBC= /lib/libc.a | |
21 | LIBS= -ll | |
22 | SRCS= y.tab.c main.c lex.yy.c mkioconf.c mkmakefile.c \ | |
9c070b02 | 23 | mkglue.c mkheaders.c mkswapconf.c |
36edb824 | 24 | OBJS= y.tab.o main.o lex.yy.o mkioconf.o mkmakefile.o \ |
9c070b02 | 25 | mkglue.o mkheaders.o mkswapconf.o |
486dd6df | 26 | MAN= config.0 |
f025f13d | 27 | |
d2748719 | 28 | all: config |
399ec687 | 29 | |
d2748719 KB |
30 | config: ${OBJS} ${LIBC} |
31 | ${CC} -o $@ ${OBJS} ${LIBS} | |
399ec687 | 32 | |
22d68ad0 BJ |
33 | lex.yy.c: config.l |
34 | lex config.l | |
35 | ||
a0105456 | 36 | y.tab.h: |
36edb824 | 37 | yacc -d config.y |
399ec687 | 38 | |
a0105456 SL |
39 | y.tab.c: config.y |
40 | yacc config.y | |
41 | ||
486dd6df | 42 | clean: |
d2748719 KB |
43 | rm -f ${OBJS} lex.yy.c y.tab.c y.tab.h config core |
44 | ||
486dd6df KB |
45 | cleandir: clean |
46 | rm -f ${MAN} tags .depend | |
47 | ||
48 | depend: y.tab.h ${SRCS} | |
d2748719 KB |
49 | mkdep ${CFLAGS} ${SRCS} |
50 | ||
486dd6df | 51 | install: ${MAN} |
d2748719 | 52 | install -s -o bin -g bin -m 755 config ${DESTDIR}/etc/config |
486dd6df | 53 | install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 |
d2748719 | 54 | |
486dd6df | 55 | lint: ${SRCS} |
d2748719 | 56 | lint ${CFLAGS} ${SRCS} |
853d3e88 | 57 | |
486dd6df | 58 | tags: ${SRCS} |
d2748719 | 59 | ctags ${SRCS} |