]> git.ipfire.org Git - thirdparty/dhcp.git/blob - common/Makefile.dist
Update license.
[thirdparty/dhcp.git] / common / Makefile.dist
1 # Makefile.dist
2 #
3 # Copyright (c) 1996-1999 Internet Software Consortium.
4 # Use is subject to license terms which appear in the file named
5 # ISC-LICENSE that should have accompanied this file when you
6 # received it. If a file named ISC-LICENSE did not accompany this
7 # file, or you are not sure the one you have is correct, you may
8 # obtain an applicable copy of the license at:
9 #
10 # http://www.isc.org/isc-license-1.0.html.
11 #
12 # This file is part of the ISC DHCP distribution. The documentation
13 # associated with this file is listed in the file DOCUMENTATION,
14 # included in the top-level directory of this release.
15 #
16 # Support and other services are available for ISC products - see
17 # http://www.isc.org for more information.
18 #
19
20 CATMANPAGES = dhcp-options.cat5
21 SRC = raw.c parse.c nit.c icmp.c dispatch.c conflex.c upf.c bpf.c socket.c \
22 lpf.c dlpi.c packet.c memory.c print.c options.c inet.c convert.c \
23 tree.c tables.c hash.c alloc.c errwarn.c inet_addr.c dns.c \
24 resolv.c sysconf.c interact.c execute.c discover.c auth.c
25 OBJ = raw.o parse.o nit.o icmp.o dispatch.o conflex.o upf.o bpf.o socket.o \
26 lpf.o dlpi.o packet.o memory.o print.o options.o inet.o convert.o \
27 tree.o tables.o hash.o alloc.o errwarn.o inet_addr.o dns.o \
28 resolv.o sysconf.o interact.o execute.o discover.o auth.o
29 MAN = dhcp-options.5
30
31 DEBUG = -g
32 INCLUDES = -I.. -I../includes
33 CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
34
35 all: libdhcp.a $(CATMANPAGES)
36
37 libdhcp.a: $(OBJ)
38 rm -f libdhcp.a
39 ar cruv libdhcp.a $(OBJ)
40 ranlib libdhcp.a
41
42 install: all
43 for dir in $(FFMANDIR); do \
44 foo=""; \
45 for bar in `echo $(DESTDIR)$${dir} |tr / ' '`; do \
46 foo=$${foo}/$$bar; \
47 if [ ! -d $$foo ]; then \
48 mkdir $$foo; \
49 chmod 755 $$foo; \
50 fi; \
51 done; \
52 done
53 $(MANINSTALL) $(MANFROM) dhcp-options.cat5 $(MANTO) \
54 $(DESTDIR)$(FFMANDIR)/dhcp-options$(FFMANEXT)
55
56 depend:
57 makedepend $(INCLUDES) $(PREDEFINES) $(SRCS)
58
59 clean:
60 -rm -f $(OBJ)
61
62 realclean: clean
63 -rm -f libdhcp.a *~ #* $(CATMANPAGES)
64
65 distclean: realclean
66 -rm -f Makefile
67
68 dhcp-options.cat5: dhcp-options.5
69 nroff -man dhcp-options.5 >dhcp-options.cat5
70
71 # Dependencies (semi-automatically-generated)