1 # $Id: Makefile.org,v 1.1.1.1 1999-11-22 03:47:59 christ Exp $
5 SRCS= main.c if.c client.c options.c socket-if.c arp.c error-handler.c \
6 signal-handler.c daemon.c hostinfo.c memory.c
8 TARFILES= *.c *.h Makefile README* ACK Changes dhcpcd.8 dhcpcd.lsm
11 #CFLAGS= -g -Wall -DNEED_BCAST_RESPONSE
15 $(CC) -o $(TARGET) $(LFLAGS) $(OBJS)
19 install -cs -m 500 $(TARGET) $(BINDIR)
21 main.c: if.h dhcp.h signal-handler.h error-handler.h daemon.h
22 if.c: if.h dhcp.h error-handler.h
23 client.c: dhcp.h dhcp-options.h socket-if.h arp.h error-handler.h \
25 options.c: dhcp.h dhcp-options.h
26 socket-if.c: dhcp.h dhcp-options.h error-handler.h
27 arp.c: dhcp.h if.h arp.h socket-if.h error-handler.h
28 daemon.c: daemon.h error-handler.h
29 hostinfo.c: hostinfo.h dhcp.h dhcp-options.h error-handler.h \
31 error-handler.c: error-handler.h
32 signal-handler.c: dhcp.h if.h signal-handler.h error-handler.h
39 tar cvf - $(TARFILES) $(TARDIRS) | gzip -9 > dhcpcd-src.tar.gz
42 @if [ "$(VERSION)" ]; then \
43 if [ -d "../dhcpcd-$(VERSION)" ]; then \
44 echo "dhcpcd-$(VERSION) already exists"; \
47 mkdir ../dhcpcd-$(VERSION); \
48 cp -r $(TARFILES) $(TARDIRS) ../dhcpcd-$(VERSION); \
49 (cd ..; tar cvf - dhcpcd-$(VERSION) | gzip -9 >dhcpcd-$(VERSION).tar.gz); \
50 rm -rf ../dhcpcd-$(VERSION); \
52 echo "specify the macro VERSION"; \
56 rm -f *.o *~ */*~ core
59 @if [ "$(VERSION)" ]; then \
60 ident $(TARFILES) | egrep 'Id:' >Seed-$(VERSION); \
61 chmod 444 Seed-$(VERSION); \
63 echo "specify the macro VERSION"; \
67 @ident $(TARFILES) | egrep 'Id:'