add atftp, bind and dhcp, not perfect, but first step
[openwrt.git] / openwrt / package / Makefile
1 # Main makefile for the packages
2 include $(TOPDIR)/rules.mk
3
4 package-:=tcp_wrappers
5 package-y:=openwrt
6 package-$(BR2_PACKAGE_AICCU) += aiccu
7 package-$(BR2_PACKAGE_ARPTABLES) += arptables
8 package-$(BR2_PACKAGE_ARPWATCH) += arpwatch
9 package-$(BR2_PACKAGE_ASTERISK) += asterisk
10 package-$(BR2_PACKAGE_ASTERISK) += atftp
11 package-$(BR2_PACKAGE_BIND) += bind
12 package-$(BR2_PACKAGE_BRIDGE) += bridge
13 package-$(BR2_PACKAGE_BUSYBOX) += busybox
14 package-$(BR2_PACKAGE_BWM) += bwm
15 package-$(BR2_PACKAGE_CHILLISPOT) += chillispot
16 package-$(BR2_PACKAGE_CIFSMOUNT) += cifsmount
17 package-$(BR2_PACKAGE_CUPS) += cups
18 package-$(BR2_PACKAGE_CYRUS_SASL) += cyrus-sasl
19 package-$(BR2_PACKAGE_DHCP) += dhcp
20 package-$(BR2_PACKAGE_DHCP_FORWARDER) += dhcp-forwarder
21 package-$(BR2_PACKAGE_DNSMASQ) += dnsmasq
22 package-$(BR2_PACKAGE_DROPBEAR) += dropbear
23 package-$(BR2_PACKAGE_DSNIFF) += dsniff
24 package-$(BR2_PACKAGE_EBTABLES) += ebtables
25 package-$(BR2_PACKAGE_EZIPUPDATE) += ez-ipupdate
26 package-$(BR2_PACKAGE_FPING) += fping
27 package-$(BR2_PACKAGE_FPROBE) += fprobe
28 package-$(BR2_PACKAGE_FREERADIUS) += freeradius
29 package-$(BR2_PACKAGE_FRICKIN) += frickin
30 package-$(BR2_PACKAGE_FUSE) += fuse
31 package-$(BR2_PACKAGE_GDBSERVER) += gdbserver
32 package-$(BR2_PACKAGE_GLIB) += glib
33 package-$(BR2_PACKAGE_GMP) += gmp
34 package-$(BR2_PACKAGE_GNUTLS) += gnutls
35 package-$(BR2_PACKAGE_HASERL) += haserl
36 package-$(BR2_PACKAGE_HOWL) += howl
37 package-$(BR2_PACKAGE_HTPDATE) += htpdate
38 package-$(BR2_PACKAGE_IPKG) += ipkg
39 package-$(BR2_PACKAGE_IPROUTE2) += iproute2
40 package-$(BR2_PACKAGE_IPTABLES) += iptables
41 package-$(BR2_PACKAGE_IRSSI) += irssi
42 package-$(BR2_PACKAGE_KISMET) += kismet
43 package-$(BR2_PACKAGE_L2TPD) += l2tpd
44 package-$(BR2_PACKAGE_LCD4LINUX) += lcd4linux
45 package-$(BR2_PACKAGE_LESS) += less
46 package-$(BR2_PACKAGE_LIBDB) += libdb
47 package-$(BR2_PACKAGE_LIBELF) += libelf
48 package-$(BR2_PACKAGE_LIBEVENT) += libevent
49 package-$(BR2_PACKAGE_LIBFFI_SABLE) += libffi-sable
50 package-$(BR2_PACKAGE_LIBGCRYPT) += libgcrypt
51 package-$(BR2_PACKAGE_LIBGD) += libgd
52 package-$(BR2_PACKAGE_LIBGDBM) += libgdbm
53 package-$(BR2_PACKAGE_LIBGPG_ERROR) += libgpg-error
54 package-$(BR2_PACKAGE_LIBNET) += libnet
55 package-$(BR2_PACKAGE_LIBNIDS) += libnids
56 package-$(BR2_PACKAGE_LIBOSIP2) += libosip2
57 package-$(BR2_PACKAGE_LIBPCAP) += libpcap
58 package-$(BR2_PACKAGE_LIBPNG) += libpng
59 package-$(BR2_PACKAGE_LIBPTHREAD) += libpthread
60 package-$(BR2_PACKAGE_LIBTASN1) += libtasn1
61 package-$(BR2_PACKAGE_LIBTOOL) += libtool
62 package-$(BR2_PACKAGE_LIBUSB) += libusb
63 package-$(BR2_PACKAGE_LIGHTTPD) += lighttpd
64 package-$(BR2_PACKAGE_LUA) += lua
65 package-$(BR2_PACKAGE_LZO) += lzo
66 package-$(BR2_PACKAGE_MARADNS) += maradns
67 package-$(BR2_PACKAGE_MATRIXSSL) += matrixssl
68 package-$(BR2_PACKAGE_MICROCOM) += microcom
69 package-$(BR2_PACKAGE_MICROPERL) += microperl
70 package-$(BR2_PACKAGE_MINI_HTTPD) += mini_httpd
71 package-$(BR2_PACKAGE_MINI_SENDMAIL) += mini_sendmail
72 package-$(BR2_PACKAGE_MONIT) += monit
73 package-$(BR2_PACKAGE_MYSQL) += mysql
74 package-$(BR2_PACKAGE_NCURSES) += ncurses
75 package-$(BR2_PACKAGE_NDISC) += ndisc
76 package-$(BR2_PACKAGE_NET_SNMP) += net-snmp
77 package-$(BR2_PACKAGE_NFS_SERVER) += nfs-server
78 package-$(BR2_PACKAGE_NMAP) += nmap
79 package-$(BR2_PACKAGE_NOCATSPLASH) += nocatsplash
80 package-$(BR2_PACKAGE_NTPCLIENT) += ntpclient
81 package-$(BR2_PACKAGE_OLSRD) += olsrd
82 package-$(BR2_PACKAGE_OPENCDK) += opencdk
83 package-$(BR2_PACKAGE_OPENLDAP) += openldap
84 package-$(BR2_PACKAGE_OPENNTPD) += openntpd
85 package-$(BR2_PACKAGE_OPENSSH) += openssh
86 package-$(BR2_PACKAGE_OPENSSL) += openssl
87 package-$(BR2_PACKAGE_OPENSWAN) += openswan
88 package-$(BR2_PACKAGE_OPENVPN) += openvpn
89 package-$(BR2_PACKAGE_OSIRIS) += osiris
90 package-$(BR2_PACKAGE_PCRE) += pcre
91 package-$(BR2_PACKAGE_PHP4) += php4
92 package-$(BR2_PACKAGE_PICOCOM) += picocom
93 package-$(BR2_PACKAGE_PMACCT) += pmacct
94 package-$(BR2_PACKAGE_POPT) += popt
95 package-$(BR2_PACKAGE_PORTMAP) += portmap
96 package-$(BR2_PACKAGE_POSTGRESQL) += postgresql
97 package-$(BR2_PACKAGE_PPP) += ppp
98 package-$(BR2_PACKAGE_PPTP) += pptp
99 package-$(BR2_PACKAGE_PPTPD) += pptpd
100 package-$(BR2_PACKAGE_QUAGGA) += quagga
101 package-$(BR2_PACKAGE_RADVD) += radvd
102 package-$(BR2_PACKAGE_READLINE) += readline
103 package-$(BR2_PACKAGE_ROBOCFG) += robocfg
104 package-$(BR2_PACKAGE_RSYNC) += rsync
105 package-$(BR2_PACKAGE_SABLEVM) += sablevm
106 package-$(BR2_PACKAGE_SABLEVM_CLASSPATH) += sablevm-classpath
107 package-$(BR2_PACKAGE_SCREEN) += screen
108 package-$(BR2_PACKAGE_SDK) += sdk
109 package-$(BR2_PACKAGE_SER) += ser
110 package-$(BR2_PACKAGE_SETSERIAL) += setserial
111 package-$(BR2_PACKAGE_SHAT) += shat
112 package-$(BR2_PACKAGE_SHFS) += shfs
113 package-$(BR2_PACKAGE_SIPROXD) += siproxd
114 package-$(BR2_PACKAGE_SIPSAK) += sipsak
115 package-$(BR2_PACKAGE_SNORT) += snort
116 package-$(BR2_PACKAGE_SPEEX) += speex
117 package-$(BR2_PACKAGE_SQLITE) += sqlite
118 package-$(BR2_PACKAGE_SQLITE2) += sqlite2
119 package-$(BR2_PACKAGE_SSMTP) += ssmtp
120 package-$(BR2_PACKAGE_STRACE) += strace
121 package-$(BR2_PACKAGE_TCPDUMP) += tcpdump
122 package-$(BR2_PACKAGE_TINC) += tinc
123 package-$(BR2_PACKAGE_TOR) += tor
124 package-$(BR2_PACKAGE_TTCP) += ttcp
125 package-$(BR2_PACKAGE_UCLIBCXX) += uclibc++
126 package-$(BR2_PACKAGE_ULOGD) += ulogd
127 package-$(BR2_PACKAGE_USBUTILS) += usbutils
128 package-$(BR2_PACKAGE_VTUN) += vtun
129 package-$(BR2_PACKAGE_VSFTPD) += vsftpd
130 package-$(BR2_PACKAGE_WIFICONF) += wificonf
131 package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools
132 package-$(BR2_PACKAGE_WOL) += wol
133 package-$(BR2_PACKAGE_WPA_SUPPLICANT) += wpa_supplicant
134 package-$(BR2_PACKAGE_WPUT) += wput
135 package-$(BR2_PACKAGE_XINETD) += xinetd
136 package-$(BR2_PACKAGE_ZLIB) += zlib
137
138 DEV_LIBS:=tcp_wrappers glib ncurses openssl pcre popt zlib libnet libpcap mysql postgresql iptables matrixssl lzo gmp fuse portmap libelf uclibc++ speex libpng libgd wireless-tools
139 DEV_LIBS_COMPILE:=$(patsubst %,%-compile,$(DEV_LIBS))
140 SDK_DEFAULT_PACKAGES:=busybox dnsmasq iptables wireless-tools dropbear bridge ipkg ppp
141 SDK_DEFAULT_COMPILE:=$(patsubst %,%-compile,$(SDK_DEFAULT_PACKAGES))
142
143 all: compile install
144 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
145 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
146 install: $(patsubst %,%-install,$(package-y))
147
148 arpwatch-compile: libpcap-compile
149 bind-compile: openssl-compile
150 cyrus-sasl-compile: openssl-compile
151 dropbear-compile: zlib-compile
152 dsniff-compile: libnids-compile openssl-compile libgdbm-compile
153 fprobe-compile: libpcap-compile
154 gdbserver-compile: ncurses-compile
155 gnutls-compile: libgcrypt-compile opencdk-compile libtasn1-compile
156 kismet-compile: uclibc++-compile libpcap-compile ncurses-compile
157 less-compile: ncurses-compile
158 lcd4linux-compile: ncurses-compile
159 libgcrypt-compile: libgpg-error-compile
160 libgd-compile: libpng-compile
161 libnet-compile: libpcap-compile
162 libnids-compile: libnet-compile
163 lighttpd-compile: openssl-compile pcre-compile
164 mini_httpd-compile: matrixssl-compile
165 mysql-compile: ncurses-compile zlib-compile
166 net-snmp-compile: libelf-compile
167 nfs-server-compile: portmap-compile
168 nmap-compile: uclibc++-compile pcre-compile libpcap-compile
169 nocatsplash-compile: glib-compile
170 opencdk-compile: libgcrypt-compile
171 openldap-compile: cyrus-sasl-compile openssl-compile
172 openssh-compile: zlib-compile openssl-compile
173 openssl-compile: zlib-compile
174 openswan-compile: gmp-compile
175 osiris-compile: openssl-compile
176 portmap-compile: tcp_wrappers-compile
177 postgresql-compile: zlib-compile
178 rsync-compile: popt-compile
179 screen-compile: ncurses-compile
180 siproxd-compile: libosip2-compile
181 sipsak-compile: openssl-compile
182 sqlite-compile: ncurses-compile readline-compile
183 sqlite2-compile: ncurses-compile readline-compile
184 tcpdump-compile: libpcap-compile
185 tinc-compile: zlib-compile openssl-compile lzo-compile
186 tor-compile: libevent-compile openssl-compile zlib-compile
187 usbutils-compile: libusb-compile
188 vtun-compile: zlib-compile openssl-compile lzo-compile
189 wificonf-compile: openwrt-compile wireless-tools-compile
190 wpa_supplicant-compile: openssl-compile
191
192 asterisk-compile: ncurses-compile openssl-compile
193 ifneq ($(BR2_PACKAGE_ASTERISK_CODEC_SPEEX),)
194 asterisk-compile: speex-compile
195 endif
196 ifneq ($(BR2_PACKAGE_ASTERISK_PGSQL),)
197 asterisk-compile: postgresql-compile
198 endif
199 ifneq ($(BR2_PACKAGE_ASTERISK_MYSQL),)
200 asterisk-compile: mysql-compile
201 endif
202
203 freeradius-compile: libtool-compile openssl-compile
204 ifneq ($(BR2_PACKAGE_FREERADIUS_MOD_LDAP),)
205 freeradius-compile: openldap-compile
206 endif
207 ifneq ($(BR2_PACKAGE_FREERADIUS_MOD_SQL_MYSQL),)
208 freeradius-compile: mysql-compile
209 endif
210 ifneq ($(BR2_PACKAGE_FREERADIUS_MOD_SQL_PGSQL),)
211 freeradius-compile: postgresql-compile
212 endif
213
214 openvpn-compile: openssl-compile
215 ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
216 openvpn-compile: lzo-compile
217 endif
218
219 ifneq ($(BR2_PACKAGE_PHP4_MOD_GD),)
220 php4-compile: libgd-compile libpng-compile
221 endif
222 ifneq ($(BR2_PACKAGE_PHP4_MOD_LDAP),)
223 php4-compile: openldap-compile
224 endif
225 ifneq ($(BR2_PACKAGE_PHP4_MOD_MYSQL),)
226 php4-compile: mysql-compile
227 endif
228 ifneq ($(BR2_PACKAGE_PHP4_MOD_OPENSSL),)
229 php4-compile: openssl-compile
230 endif
231 ifneq ($(BR2_PACKAGE_PHP4_MOD_PCRE),)
232 php4-compile: pcre-compile
233 endif
234 ifneq ($(BR2_PACKAGE_PHP4_MOD_PGSQL),)
235 php4-compile: postgresql-compile
236 endif
237 ifneq ($(BR2_PACKAGE_PHP4_MOD_SQLITE),)
238 php4-compile: sqlite2-compile
239 endif
240
241 pmacct-compile: libpcap-compile
242 ifneq ($(BR2_PACKAGE_PMACCT_MYSQL),)
243 pmacct-compile: mysql-compile
244 endif
245 ifneq ($(BR2_PACKAGE_PMACCT_PGSQL),)
246 pmacct-compile: postgresql-compile
247 endif
248
249 snort-compile: libnet-compile libpcap-compile pcre-compile
250 ifeq ($(BR2_PACKAGE_SNORT_MYSQL),y)
251 snort-compile: mysql-compile
252 endif
253 ifeq ($(BR2_PACKAGE_SNORT_PGSQL),y)
254 snort-compile: postgresql-compile
255 endif
256 ifeq ($(BR2_PACKAGE_SNORT_ENABLE_INLINE),y)
257 snort-compile: iptables-compile
258 endif
259
260 ulogd-compile: iptables-compile
261 ifneq ($(BR2_PACKAGE_ULOGD_MYSQL),)
262 ulogd-compile: mysql-compile
263 endif
264 ifneq ($(BR2_PACKAGE_ULOGD_PGSQL),)
265 ulogd-compile: postgresql-compile
266 endif
267
268 sdk-compile: $(DEV_LIBS_COMPILE) $(SDK_DEFAULT_COMPILE) openwrt-install
269
270 %-prepare:
271 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
272 @touch $(STAMP_DIR)/.$@
273
274 %-compile: %-prepare
275 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-compile,%,$@) compile
276 @touch $(STAMP_DIR)/.$@
277
278 %-install: %-compile
279 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-install,%,$@) install
280 @touch $(STAMP_DIR)/.$@
281
282 %-rebuild:
283 @rm -f $(STAMP_DIR)/.$(patsubst %-rebuild,%,$@)-*
284 $(MAKE) -C $(patsubst %-rebuild,%,$@) rebuild
285
286 %-clean:
287 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
288 @rm -f $(STAMP_DIR)/.$(patsubst %-clean,%,$@)-*
289
This page took 0.110558 seconds and 5 git commands to generate.