Merge from vendor branch DHCP:
[dragonfly.git] / contrib / isc-dhcp / dst / Makefile.dist
1 # Makefile.dist
2 #
3 # Copyright (c) 1996-2002 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 SRC    = dst_support.c dst_api.c hmac_link.c md5_dgst.c base64.c prandom.c
21 OBJ    = dst_support.o dst_api.o hmac_link.o md5_dgst.o base64.o prandom.o
22 HDRS   = dst_internal.h md5.h md5_locl.h
23
24 INCLUDES = $(BINDINC) -I$(TOP)/includes
25 CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS) -DHMAC_MD5 -DMINIRES_LIB
26
27 all:    libdst.a
28
29 install:
30
31 libdst.a:       $(OBJ)
32         rm -f dst.a
33         ar cruv libdst.a $(OBJ)
34         $(RANLIB) libdst.a
35
36 depend:
37         $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC)
38
39 clean:
40         -rm -f $(OBJ) libdst.a
41
42 realclean: clean
43         -rm -f *~ $(CATMANPAGES) $(SEDMANPAGES)
44
45 distclean: realclean
46         -rm -f Makefile
47
48 links:
49         @for foo in $(SRC) $(MAN) $(HDRS); do \
50           if [ ! -b $$foo ]; then \
51             rm -f $$foo; \
52           fi; \
53           ln -s $(TOP)/dst/$$foo $$foo; \
54         done
55 # Dependencies (semi-automatically-generated)