1# 2# Copyright (c) 1987 Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that this notice is preserved and that due credit is given 7# to the University of California at Berkeley. The name of the University 8# may not be used to endorse or promote products derived from this 9# software without specific prior written permission. This software 10# is provided ``as is'' without express or implied warranty. 11# 12# @(#)Makefile 5.5 (Berkeley) 02/23/88 13# 14CFLAGS= -O 15LIBC= /lib/libc.a 16SRCS= htable.c parse.c scan.c 17OBJS= htable.o parse.o scan.o 18 19all: htable 20 21htable: ${OBJS} ${LIBC} 22 ${CC} -o $@ ${CFLAGS} ${OBJS} 23 24y.tab.h: 25 yacc -d parse.y 26 rm -f y.tab.c 27 28clean: FRC 29 rm -f ${OBJS} core htable parse.c scan.c y.tab.h 30 31depend: ${SRCS} y.tab.h FRC 32 mkdep ${CFLAGS} ${SRCS} 33 34install: FRC 35 install -s -o bin -g bin -m 755 htable ${DESTDIR}/etc/htable 36 37lint: ${SRCS} FRC 38 lint ${CFLAGS} ${SRCS} 39 40tags: FRC 41 ctags ${SRCS} 42 43FRC: 44 45# DO NOT DELETE THIS LINE -- mkdep uses it. 46# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 47 48htable.o: htable.c /usr/include/stdio.h /usr/include/ctype.h 49htable.o: /usr/include/errno.h /usr/include/netdb.h htable.h 50htable.o: /usr/include/sys/types.h /usr/include/netinet/in.h 51htable.o: /usr/include/sys/socket.h /usr/include/arpa/inet.h 52parse.o: parse.c htable.h /usr/include/sys/types.h /usr/include/netinet/in.h 53parse.o: /usr/include/stdio.h 54scan.o: scan.c /usr/include/stdio.h y.tab.h htable.h /usr/include/sys/types.h 55scan.o: /usr/include/netinet/in.h 56 57# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 58