File: Makefile

package info (click to toggle)
dhcpcd 0.70-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 276 kB
  • ctags: 270
  • sloc: ansic: 2,300; sh: 391; makefile: 93
file content (67 lines) | stat: -rw-r--r-- 1,811 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# $Id: Makefile,v 0.3 1997/01/31 16:48:47 yoichi v0_5 yoichi $

TARGET=	dhcpcd
BINDIR= $(DEST)/usr/sbin
SRCS=	main.c if.c client.c options.c socket-if.c arp.c error-handler.c \
	signal-handler.c daemon.c hostinfo.c memory.c
OBJS=	$(SRCS:.c=.o)
TARFILES= *.c *.h Makefile README* ACK Changes dhcpcd.8 dhcpcd.lsm
TARDIRS= pcmcia rc.d

#CFLAGS=	-g -Wall -DNEED_BCAST_RESPONSE
CFLAGS=	-O5 -Wall

$(TARGET): $(OBJS)
	$(CC) -o $(TARGET) $(LFLAGS) $(OBJS)

install:
	mkdir -p $(DEST)/etc/dhcpc
	install -cs $(TARGET) $(BINDIR)

main.c:		if.h dhcp.h signal-handler.h error-handler.h daemon.h
if.c:		if.h dhcp.h error-handler.h
client.c:	dhcp.h dhcp-options.h socket-if.h arp.h error-handler.h \
		hostinfo.h client.h
options.c:	dhcp.h dhcp-options.h
socket-if.c:	dhcp.h dhcp-options.h error-handler.h
arp.c:		dhcp.h if.h arp.h socket-if.h error-handler.h
daemon.c:	daemon.h error-handler.h
hostinfo.c:	hostinfo.h dhcp.h dhcp-options.h error-handler.h \
		signal-handler.h
error-handler.c:	error-handler.h
signal-handler.c:	dhcp.h if.h signal-handler.h error-handler.h


tags:
	etags *.[ch]

tar:
	tar cvf - $(TARFILES) $(TARDIRS) | gzip -9 > dhcpcd-src.tar.gz

distrib:
	@if [ "$(VERSION)" ]; then \
	  if [ -d "../dhcpcd-$(VERSION)" ]; then \
	    echo "dhcpcd-$(VERSION) already exists"; \
	    exit 1; \
	  fi; \
	  mkdir ../dhcpcd-$(VERSION); \
	  cp -r $(TARFILES) $(TARDIRS) ../dhcpcd-$(VERSION); \
	  (cd ..; tar cvf - dhcpcd-$(VERSION) | gzip -9 >dhcpcd-$(VERSION).tar.gz); \
	  rm -rf ../dhcpcd-$(VERSION); \
	else \
	  echo "specify the macro VERSION"; \
	fi

clean:
	rm -f *.o *~ */*~ core

seed:
	@if [ "$(VERSION)" ]; then \
	  ident $(TARFILES) | egrep 'Id:' >Seed-$(VERSION); \
	  chmod 444 Seed-$(VERSION); \
	else \
	  echo "specify the macro VERSION"; \
	fi

snap:
	  @ident $(TARFILES) | egrep 'Id:'