]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bind/port/Makefile
unfinished sblive driver, playback/mixer only for now - not enabled in
[FreeBSD/FreeBSD.git] / contrib / bind / port / Makefile
1 # Copyright (c) 1996,1999 by Internet Software Consortium
2 #
3 # Permission to use, copy, modify, and distribute this software for any
4 # purpose with or without fee is hereby granted, provided that the above
5 # copyright notice and this permission notice appear in all copies.
6 #
7 # THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
8 # ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
9 # OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
10 # CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
11 # DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
12 # PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
13 # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
14 # SOFTWARE.
15
16 # $Id: Makefile,v 8.15 1999/08/08 17:13:24 vixie Exp $
17
18 # these are only appropriate for BSD 4.4 or derivatives, and are used in
19 # development.  normal builds will be done in the top level directory and
20 # this Makefile will be invoked with a lot of overrides for the following:
21 SYSTYPE= bsdos
22 SHELL= /bin/sh
23 O=o
24 A=a
25 DESTDIR=
26 DESTINC= /usr/local/bind/include
27 DESTLIB= /usr/local/lib
28 TOP= ..
29 INCL= ${TOP}/include
30 PORTINCL= ${TOP}/port/${SYSTYPE}/include
31 LIBBIND= ${TOP}/lib/libbind.${A}
32 RANLIB= ranlib
33 AR= ar cru
34 INSTALL= install
35 CDEBUG= -g
36
37 SUBDIRS = bsdos decunix linux netbsd sunos ultrix
38
39 MARGS = "SYSTYPE=${SYSTYPE}" "SHELL=${SHELL}" "A=${A}" "O=${O}" \
40         "CC=${CC}" "LEX=${LEX}" "CDEBUG=${CDEBUG}" \
41         "SYSLIBS=${SYSLIBS}" "LDFLAGS=${LDFLAGS}" \
42         "DESTDIR=${DESTDIR}" "DESTMAN=${DESTMAN}" \
43         "DESTBIN=${DESTBIN}" "DESTSBIN=${DESTSBIN}" "DESTEXEC=${DESTEXEC}" \
44         "DESTLIB=${DESTLIB}" "DESTINC=${DESTINC}" "DESTHELP=${DESTHELP}" \
45         "RANLIB=${RANLIB}" "AR=${AR}" "ARPREF=${ARPREF}" "ARSUFF=${ARSUFF}" \
46         "INCL=../${INCL}" "PORTINCL=../${PORTINCL}" \
47         "LIBBIND=../${LIBBIND}" \
48         "INSTALL=${INSTALL}" "CPPFLAGS=${CPPFLAGS}" "TOP=../${TOP}"
49
50 all::
51
52 all depend install::
53         @(cd ${SYSTYPE}; pwd; ${MAKE} ${MARGS} $@)
54
55 distclean:: clean
56         @set -e; for x in ${SUBDIRS}; do \
57                 (cd $$x; pwd; ${MAKE} ${MARGS} $@); \
58         done
59
60 clean::
61         @set -e; cd ${SYSTYPE}; pwd; ${MAKE} ${MARGS} clean
62
63 clean:: FRC
64         rm -f *~ *.BAK *.CKP *.orig .systype
65
66 install::
67
68 links:: FRC
69         @set -e; \
70           ln -s SRC/systype SRC/settings .; \
71           mkdir ${SYSTYPE}; cd ${SYSTYPE}; pwd; ln -s ../SRC/${SYSTYPE} SRC; \
72           cp SRC/Makefile Makefile; chmod +w Makefile; \
73           ${MAKE} ${MARGS} links
74
75 FRC: