add libgsm and gsm-utils packages
[openwrt/svn-archive/archive.git] / openwrt / package / Makefile
1 # Main makefile for the packages
2 include $(TOPDIR)/rules.mk
3
4 package-:=tcp_wrappers
5 package-$(BR2_PACKAGE_6TUNNEL) += 6tunnel
6 package-$(BR2_PACKAGE_AICCU) += aiccu
7 package-$(BR2_PACKAGE_AIRCRACK) += aircrack
8 package-$(BR2_PACKAGE_AMWALL) += amwall
9 package-$(BR2_PACKAGE_ARPD) += arpd
10 package-$(BR2_PACKAGE_ARPTABLES) += arptables
11 package-$(BR2_PACKAGE_ARPWATCH) += arpwatch
12 package-$(BR2_PACKAGE_ASTERISK) += asterisk
13 package-$(BR2_COMPILE_ATFTP) += atftp
14 package-$(BR2_COMPILE_AVAHI) += avahi
15 package-$(BR2_COMPILE_BIND) += bind
16 package-$(BR2_PACKAGE_BLUEZ_LIBS) += bluez-libs
17 package-$(BR2_PACKAGE_BLUEZ_UTILS) += bluez-utils
18 package-$(BR2_PACKAGE_BRIDGE) += bridge
19 package-$(BR2_PACKAGE_BUSYBOX) += busybox
20 package-$(BR2_PACKAGE_BWM) += bwm
21 package-$(BR2_PACKAGE_CGILIB) += cgilib
22 package-$(BR2_PACKAGE_CHILLISPOT) += chillispot
23 package-$(BR2_PACKAGE_CIFSMOUNT) += cifsmount
24 package-$(BR2_PACKAGE_CUPS) += cups
25 package-$(BR2_COMPILE_CURL) += curl
26 package-$(BR2_COMPILE_CYRUS_SASL) += cyrus-sasl
27 package-$(BR2_COMPILE_DB) += libdb
28 package-$(BR2_PACKAGE_DECO) += deco
29 package-$(BR2_COMPILE_DHCP) += dhcp
30 package-$(BR2_PACKAGE_DHCP_FORWARDER) += dhcp-forwarder
31 package-$(BR2_PACKAGE_DNSMASQ) += dnsmasq
32 package-$(BR2_PACKAGE_DOSFSTOOLS) += dosfstools
33 package-$(BR2_PACKAGE_DROPBEAR) += dropbear
34 package-$(BR2_PACKAGE_DSNIFF) += dsniff
35 package-$(BR2_PACKAGE_E2FSPROGS) += e2fsprogs
36 package-$(BR2_PACKAGE_EBTABLES) += ebtables
37 package-$(BR2_PACKAGE_ETHER_WAKE) += ether-wake
38 package-$(BR2_COMPILE_EXPAT) += expat
39 package-$(BR2_PACKAGE_EZIPUPDATE) += ez-ipupdate
40 package-$(BR2_COMPILE_FLAC) += flac
41 package-$(BR2_PACKAGE_FPING) += fping
42 package-$(BR2_PACKAGE_FPROBE) += fprobe
43 package-$(BR2_PACKAGE_FPROBE_ULOG) += fprobe-ulog
44 package-$(BR2_PACKAGE_FREERADIUS) += freeradius
45 package-$(BR2_COMPILE_FREETYPE) += freetype
46 package-$(BR2_PACKAGE_FRICKIN) += frickin
47 package-$(BR2_COMPILE_FUSE) += fuse
48 package-$(BR2_PACKAGE_GDBSERVER) += gdbserver
49 package-$(BR2_COMPILE_GLIB) += glib
50 package-$(BR2_PACKAGE_GMEDIASERVER) += gmediaserver
51 package-$(BR2_COMPILE_GMP) += gmp
52 package-$(BR2_COMPILE_GNUTLS) += gnutls
53 package-$(BR2_PACKAGE_GPSD) += gpsd
54 package-$(BR2_COMPILE_GSM) += gsm
55 package-$(BR2_PACKAGE_HASERL) += haserl
56 package-$(BR2_PACKAGE_HOSTAP_UTILS) += hostap-utils
57 package-$(BR2_PACKAGE_HOSTAPD) += hostapd
58 package-$(BR2_COMPILE_HOWL) += howl
59 package-$(BR2_PACKAGE_HTPDATE) += htpdate
60 package-$(BR2_PACKAGE_ICECAST) += icecast
61 package-$(BR2_PACKAGE_ID3LIB) += id3lib
62 package-$(BR2_PACKAGE_IPERF) += iperf
63 package-$(BR2_PACKAGE_IPKG) += ipkg
64 package-$(BR2_COMPILE_IPROUTE2) += iproute2
65 package-$(BR2_PACKAGE_IPSET) += ipset
66 package-$(BR2_COMPILE_IPTABLES) += iptables
67 package-$(BR2_PACKAGE_IPTABLES_SNMP) += iptables-snmp
68 package-$(BR2_PACKAGE_IPTRAF) += iptraf
69 package-$(BR2_PACKAGE_IRSSI) += irssi
70 package-$(BR2_COMPILE_JPEG) += jpeg
71 package-$(BR2_COMPILE_KISMET) += kismet
72 package-$(BR2_COMPILE_KNOCK) += knock
73 package-$(BR2_PACKAGE_L2TPD) += l2tpd
74 package-$(BR2_PACKAGE_LCD4LINUX) += lcd4linux
75 package-$(BR2_PACKAGE_LESS) += less
76 package-$(BR2_PACKAGE_LIBAMSEL) += libamsel
77 package-$(BR2_PACKAGE_LIBAO) += libao
78 package-$(BR2_PACKAGE_LIBART) += libart
79 package-$(BR2_PACKAGE_LIBDAEMON) += libdaemon
80 package-$(BR2_PACKAGE_LIBDNET) += libdnet
81 package-$(BR2_PACKAGE_LIBELF) += libelf
82 package-$(BR2_PACKAGE_LIBEVENT) += libevent
83 package-$(BR2_PACKAGE_LIBFFI_SABLE) += libffi-sable
84 package-$(BR2_PACKAGE_LIBGCRYPT) += libgcrypt
85 package-$(BR2_PACKAGE_LIBGD) += libgd
86 package-$(BR2_PACKAGE_LIBGDBM) += libgdbm
87 package-$(BR2_PACKAGE_LIBGPG_ERROR) += libgpg-error
88 package-$(BR2_PACKAGE_LIBID3TAG) += libid3tag
89 package-$(BR2_PACKAGE_LIBLZO) += liblzo
90 package-$(BR2_PACKAGE_LIBMAD) += libmad
91 package-$(BR2_PACKAGE_LIBNET) += libnet
92 package-$(BR2_PACKAGE_LIBNIDS) += libnids
93 package-$(BR2_PACKAGE_LIBOGG) += libogg
94 package-$(BR2_PACKAGE_LIBOSIP2) += libosip2
95 package-$(BR2_PACKAGE_LIBPCAP) += libpcap
96 package-$(BR2_PACKAGE_LIBPNG) += libpng
97 package-$(BR2_PACKAGE_LIBPTHREAD) += libpthread
98 package-$(BR2_PACKAGE_LIBTASN1) += libtasn1
99 package-$(BR2_COMPILE_LIBTOOL) += libtool
100 package-$(BR2_PACKAGE_LIBUPNP) += libupnp
101 package-$(BR2_PACKAGE_LIBUSB) += libusb
102 package-$(BR2_PACKAGE_LIBVORBIS) += libvorbis
103 package-$(BR2_PACKAGE_LIBVORBISIDEC) += libvorbisidec
104 package-$(BR2_PACKAGE_LIBXML2) += libxml2
105 package-$(BR2_PACKAGE_LIBXSLT) += libxslt
106 package-$(BR2_PACKAGE_LIGHTTPD) += lighttpd
107 package-$(BR2_PACKAGE_LINUX_ATM) += linux-atm
108 package-$(BR2_COMPILE_LUA) += lua
109 package-$(BR2_PACKAGE_MADWIFI_TOOLS) += madwifi-tools
110 package-$(BR2_PACKAGE_MARADNS) += maradns
111 package-$(BR2_COMPILE_MATRIXSSL) += matrixssl
112 package-$(BR2_PACKAGE_MIAX) += miax
113 package-$(BR2_PACKAGE_MICROCOM) += microcom
114 package-$(BR2_PACKAGE_MICROPERL) += microperl
115 package-$(BR2_COMPILE_MINI_HTTPD) += mini_httpd
116 package-$(BR2_PACKAGE_MINI_SENDMAIL) += mini_sendmail
117 package-$(BR2_COMPILE_MIREDO) += miredo
118 package-$(BR2_COMPILE_MONIT) += monit
119 package-$(BR2_PACKAGE_MPD) += mpd
120 package-$(BR2_PACKAGE_MT_DAAPD) += mt-daapd
121 package-$(BR2_PACKAGE_MTD) += mtd
122 package-$(BR2_PACKAGE_MTR) += mtr
123 package-$(BR2_COMPILE_MYSQL) += mysql
124 package-$(BR2_PACKAGE_NANO) += nano
125 package-$(BR2_COMPILE_NCURSES) += ncurses
126 package-$(BR2_COMPILE_NDISC6) += ndisc
127 package-$(BR2_COMPILE_NET_SNMP) += net-snmp
128 package-$(BR2_PACKAGE_NETSTAT_NAT) += netstat-nat
129 package-$(BR2_PACKAGE_NFS_SERVER) += nfs-server
130 package-$(BR2_PACKAGE_NMAP) += nmap
131 package-$(BR2_PACKAGE_NOCATSPLASH) += nocatsplash
132 package-$(BR2_PACKAGE_NTPCLIENT) += ntpclient
133 package-$(BR2_PACKAGE_NVRAM) += nvram
134 package-$(BR2_PACKAGE_OLSRD) += olsrd
135 package-$(BR2_COMPILE_OPENCDK) += opencdk
136 package-$(BR2_COMPILE_OPENLDAP) += openldap
137 package-$(BR2_PACKAGE_OPENNTPD) += openntpd
138 package-$(BR2_COMPILE_OPENSSH) += openssh
139 package-$(BR2_COMPILE_OPENSSL) += openssl
140 package-$(BR2_PACKAGE_OPENSWAN) += openswan
141 package-$(BR2_PACKAGE_OPENVPN) += openvpn
142 package-$(BR2_COMPILE_OSIRIS) += osiris
143 package-$(BR2_PACKAGE_PALANTIR) += palantir
144 package-$(BR2_PACKAGE_P910ND) += p910nd
145 package-$(BR2_PACKAGE_PARPROUTED) += parprouted
146 package-$(BR2_COMPILE_PCMCIA_CS) += pcmcia-cs
147 package-$(BR2_COMPILE_PCRE) += pcre
148 package-$(BR2_COMPILE_PHP4) += php4
149 package-$(BR2_COMPILE_PHP5) += php5
150 package-$(BR2_PACKAGE_PICOCOM) += picocom
151 package-$(BR2_COMPILE_PMACCT) += pmacct
152 package-$(BR2_COMPILE_POPT) += popt
153 package-$(BR2_PACKAGE_PORTMAP) += portmap
154 package-$(BR2_PACKAGE_PORTSENTRY) += portsentry
155 package-$(BR2_COMPILE_POSTGRESQL) += postgresql
156 package-$(BR2_PACKAGE_PPP) += ppp
157 package-$(BR2_PACKAGE_PPTP) += pptp
158 package-$(BR2_PACKAGE_PPTPD) += pptpd
159 package-$(BR2_PACKAGE_PSYBNC) += psybnc
160 package-$(BR2_PACKAGE_QUAGGA) += quagga
161 package-$(BR2_PACKAGE_RADVD) += radvd
162 package-$(BR2_PACKAGE_RARPD) += rarpd
163 package-$(BR2_COMPILE_READLINE) += readline
164 package-$(BR2_PACKAGE_REAIM) += reaim
165 package-$(BR2_PACKAGE_ROBOCFG) += robocfg
166 package-$(BR2_COMPILE_RP_PPPOE) += rp-pppoe
167 package-$(BR2_PACKAGE_RRDCOLLECT) += rrdcollect
168 package-$(BR2_COMPILE_RRDTOOL) += rrdtool
169 package-$(BR2_COMPILE_RRDTOOL1) += rrdtool1
170 package-$(BR2_COMPILE_RRS) += rrs
171 package-$(BR2_PACKAGE_RSYNC) += rsync
172 package-$(BR2_PACKAGE_SABLEVM) += sablevm
173 package-$(BR2_COMPILE_SABLEVM_CLASSPATH) += sablevm-classpath
174 package-$(BR2_COMPILE_SAMBA) += samba
175 package-$(BR2_PACKAGE_SCDP) += scdp
176 package-$(BR2_PACKAGE_SCREEN) += screen
177 package-$(BR2_PACKAGE_SDK) += sdk
178 package-$(BR2_PACKAGE_SER) += ser
179 package-$(BR2_PACKAGE_SETPWC) += setpwc
180 package-$(BR2_PACKAGE_SETSERIAL) += setserial
181 package-$(BR2_PACKAGE_SHAT) += shat
182 package-$(BR2_COMPILE_SHFS) += shfs
183 package-$(BR2_PACKAGE_SIPROXD) += siproxd
184 package-$(BR2_PACKAGE_SIPSAK) += sipsak
185 package-$(BR2_PACKAGE_SLURM) += slurm
186 package-$(BR2_COMPILE_SNORT) += snort
187 package-$(BR2_COMPILE_SNORT_WIRELESS) += snort-wireless
188 package-$(BR2_PACKAGE_SOCAT) += socat
189 package-$(BR2_COMPILE_SPEEX) += speex
190 package-$(BR2_COMPILE_SQLITE) += sqlite
191 package-$(BR2_COMPILE_SQLITE2) += sqlite2
192 package-$(BR2_PACKAGE_SSMTP) += ssmtp
193 package-$(BR2_PACKAGE_SRELAY) += srelay
194 package-$(BR2_PACKAGE_STRACE) += strace
195 package-$(BR2_PACKAGE_TCPDUMP) += tcpdump
196 package-$(BR2_PACKAGE_TINC) += tinc
197 package-$(BR2_PACKAGE_TOR) += tor
198 package-$(BR2_PACKAGE_TTCP) += ttcp
199 package-$(BR2_PACKAGE_UCLIBCXX) += uclibc++
200 package-$(BR2_PACKAGE_ULOGD) += ulogd
201 package-$(BR2_PACKAGE_UPDATEDD) += updatedd
202 package-$(BR2_COMPILE_USBUTILS) += usbutils
203 package-$(BR2_COMPILE_UTIL_LINUX) += util-linux
204 package-$(BR2_PACKAGE_UDEV) += udev
205 package-$(BR2_PACKAGE_VTUN) += vtun
206 package-$(BR2_PACKAGE_VSFTPD) += vsftpd
207 package-$(BR2_PACKAGE_WIFICONF) += wificonf
208 package-$(BR2_PACKAGE_WIFIDOG) += wifidog
209 package-$(BR2_PACKAGE_WIVIZ) += wiviz
210 package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools
211 package-$(BR2_PACKAGE_WKNOCK) += wknock
212 package-$(BR2_PACKAGE_WOL) += wol
213 package-$(BR2_PACKAGE_WONDERSHAPER) += wondershaper
214 package-$(BR2_PACKAGE_WPA_SUPPLICANT) += wpa_supplicant
215 package-$(BR2_PACKAGE_WPUT) += wput
216 package-$(BR2_PACKAGE_WRT_RADAUTH) += wrt-radauth
217 package-$(BR2_PACKAGE_XINETD) += xinetd
218 package-$(BR2_PACKAGE_XSUPPLICANT) += xsupplicant
219 package-$(BR2_PACKAGE_ZLIB) += zlib
220
221 DEV_LIBS:=tcp_wrappers glib ncurses openssl pcre popt zlib libnet libpcap mysql postgresql iptables matrixssl liblzo gmp fuse portmap libelf uclibc++ speex libpng libgd wireless-tools nvram linux-atm libamsel libao libart libdaemon libdb libdnet libevent libffi-sable libgcrypt libgdbm libgpg-error libid3tag libmad libnet libnids libogg libosip2 libpcap libtasn1 libupnp libusb libvorbis libvorbisidec libxml2 libxslt id3lib
222 DEV_LIBS_COMPILE:=$(patsubst %,%-compile,$(DEV_LIBS))
223 SDK_DEFAULT_PACKAGES:=busybox dnsmasq iptables wireless-tools dropbear bridge ipkg ppp
224 SDK_DEFAULT_COMPILE:=$(patsubst %,%-compile,$(SDK_DEFAULT_PACKAGES))
225 COMPILE_PACKAGES:=$(patsubst %,%-compile,$(package-y) $(package-m))
226 INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y))
227
228 all: compile
229 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
230 compile: $(COMPILE_PACKAGES)
231 install: base-files-install $(INSTALL_PACKAGES)
232
233 $(COMPILE_PACKAGES): base-files-compile
234 $(INSTALL_PACKAGES): base-files-install
235
236 amwall-compile: libamsel-compile
237 arpd-compile: libpcap-compile libdnet-compile libevent-compile
238 arpwatch-compile: libpcap-compile
239 avahi-compile: libdaemon-compile expat-compile libgdbm-compile
240 bind-compile: openssl-compile
241 curl-compile: openssl-compile zlib-compile
242 cyrus-sasl-compile: openssl-compile
243 deco-compile: ncurses-compile
244 dropbear-compile: zlib-compile
245 dsniff-compile: libnids-compile openssl-compile libgdbm-compile
246 freetype-compile: zlib-compile
247 fprobe-compile: libpcap-compile
248 gdbserver-compile: ncurses-compile
249 gmediaserver-compile: id3lib-compile libupnp-compile
250 gnutls-compile: libgcrypt-compile opencdk-compile libtasn1-compile
251 gpsd-compile: uclibc++-compile
252 icecast-compile: curl-compile libvorbisidec-compile libxml2-compile libxslt-compile
253 id3lib-compile: uclibc++-compile zlib-compile
254 irssi-compile: glib-compile ncurses-compile
255 iperf-compile: uclibc++-compile
256 iptables-snmp-compile: net-snmp-compile
257 iptraf-compile: ncurses-compile
258 hostapd-compile: openssl-compile wireless-tools-compile
259 kismet-compile: uclibc++-compile libpcap-compile ncurses-compile
260 less-compile: ncurses-compile
261 lcd4linux-compile: ncurses-compile
262 libgcrypt-compile: libgpg-error-compile
263 libgd-compile: libpng-compile
264 libnet-compile: libpcap-compile
265 libnids-compile: libnet-compile
266 libvorbis-compile: libogg-compile
267 libxml2-compile: zlib-compile
268 libxslt-compile: libxml2-compile
269 lighttpd-compile: openssl-compile pcre-compile
270 miax-compile: bluez-libs-compile
271 miredo-compile: uclibc++-compile
272 mt-daapd-compile: howl-compile libgdbm-compile libid3tag-compile
273 mtr-compile: ncurses-compile
274 mysql-compile: ncurses-compile zlib-compile
275 nano-compile: ncurses-compile
276 net-snmp-compile: libelf-compile
277 nfs-server-compile: portmap-compile
278 nmap-compile: uclibc++-compile pcre-compile libpcap-compile
279 nocatsplash-compile: glib-compile
280 opencdk-compile: libgcrypt-compile
281 openldap-compile: cyrus-sasl-compile openssl-compile
282 openssh-compile: zlib-compile openssl-compile
283 openssl-compile: zlib-compile
284 openswan-compile: gmp-compile
285 osiris-compile: openssl-compile
286 palantir-compile: jpeg-compile
287 portmap-compile: tcp_wrappers-compile
288 postgresql-compile: zlib-compile
289 ppp-compile: linux-atm-compile
290 quagga-compile: readline-compile ncurses-compile
291 rarpd-compile: libnet-compile
292 ifneq ($(BR2_PACKAGE_LIBRRD),)
293 rrdcollect-compile: rrdtool-compile
294 endif
295 ifneq ($(BR2_PACKAGE_LIBRRD1),)
296 rrdcollect-compile: rrdtool1-compile
297 endif
298 rrdtool-compile: cgilib-compile freetype-compile libart-compile libpng-compile
299 rrdtool1-compile: zlib-compile
300 rsync-compile: popt-compile
301 scdp-compile: libnet-compile
302 screen-compile: ncurses-compile
303 siproxd-compile: libosip2-compile
304 sipsak-compile: openssl-compile
305 socat-compile: openssl-compile
306 sqlite-compile: ncurses-compile readline-compile
307 sqlite2-compile: ncurses-compile readline-compile
308 tcpdump-compile: libpcap-compile
309 tinc-compile: zlib-compile openssl-compile liblzo-compile
310 tor-compile: libevent-compile openssl-compile zlib-compile
311 usbutils-compile: libusb-compile
312 vtun-compile: zlib-compile openssl-compile liblzo-compile
313 wificonf-compile: wireless-tools-compile nvram-compile
314 wknock-compile: libpcap-compile
315 wpa_supplicant-compile: openssl-compile
316 xsupplicant-compile: openssl-compile
317
318 asterisk-compile: bluez-libs-compile ncurses-compile openssl-compile
319 ifneq ($(BR2_PACKAGE_ASTERISK_CODEC_SPEEX),)
320 asterisk-compile: speex-compile
321 endif
322 ifneq ($(BR2_PACKAGE_ASTERISK_PGSQL),)
323 asterisk-compile: postgresql-compile
324 endif
325 ifneq ($(BR2_PACKAGE_ASTERISK_MYSQL),)
326 asterisk-compile: mysql-compile
327 endif
328
329 freeradius-compile: libtool-compile openssl-compile
330 ifneq ($(BR2_PACKAGE_FREERADIUS_MOD_LDAP),)
331 freeradius-compile: openldap-compile
332 endif
333 ifneq ($(BR2_PACKAGE_FREERADIUS_MOD_SQL_MYSQL),)
334 freeradius-compile: mysql-compile
335 endif
336 ifneq ($(BR2_PACKAGE_FREERADIUS_MOD_SQL_PGSQL),)
337 freeradius-compile: postgresql-compile
338 endif
339
340 ifneq ($(BR2_PACKAGE_MINI_HTTPD_MATRIXSSL),)
341 mini_httpd-compile: matrixssl-compile
342 endif
343 ifneq ($(BR2_PACKAGE_MINI_HTTPD_OPENSSL),)
344 mini_httpd-compile: openssl-compile
345 endif
346
347 ifneq ($(BR2_PACKAGE_MPD_MP3),)
348 mpd-compile: libid3tag-compile libmad-compile
349 endif
350 ifneq ($(BR2_PACKAGE_MPD_OGG),)
351 mpd-compile: libvorbisidec-compile
352 endif
353 ifneq ($(BR2_PACKAGE_MPD_FLAC),)
354 mpd-compile: flac-compile
355 endif
356
357 openvpn-compile: openssl-compile
358 ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
359 openvpn-compile: liblzo-compile
360 endif
361
362 php4-compile: openssl-compile zlib-compile
363 ifneq ($(BR2_PACKAGE_PHP4_MOD_CURL),)
364 php4-compile: curl-compile
365 endif
366 ifneq ($(BR2_PACKAGE_PHP4_MOD_GD),)
367 php4-compile: libgd-compile libpng-compile
368 endif
369 ifneq ($(BR2_PACKAGE_PHP4_MOD_GMP),)
370 php4-compile: gmp-compile
371 endif
372 ifneq ($(BR2_PACKAGE_PHP4_MOD_LDAP),)
373 php4-compile: openldap-compile
374 endif
375 ifneq ($(BR2_PACKAGE_PHP4_MOD_MYSQL),)
376 php4-compile: mysql-compile
377 endif
378 ifneq ($(BR2_PACKAGE_PHP4_MOD_PCRE),)
379 php4-compile: pcre-compile
380 endif
381 ifneq ($(BR2_PACKAGE_PHP4_MOD_PGSQL),)
382 php4-compile: postgresql-compile
383 endif
384 ifneq ($(BR2_PACKAGE_PHP4_MOD_SQLITE),)
385 php4-compile: sqlite2-compile
386 endif
387 ifneq ($(BR2_PACKAGE_PHP4_MOD_XML),)
388 php4-compile: expat-compile
389 endif
390
391 php5-compile: openssl-compile zlib-compile
392 ifneq ($(BR2_PACKAGE_PHP5_MOD_CURL),)
393 php5-compile: curl-compile
394 endif
395 ifneq ($(BR2_PACKAGE_PHP5_MOD_GD),)
396 php5-compile: libgd-compile libpng-compile
397 endif
398 ifneq ($(BR2_PACKAGE_PHP5_MOD_GMP),)
399 php5-compile: gmp-compile
400 endif
401 ifneq ($(BR2_PACKAGE_PHP5_MOD_LDAP),)
402 php5-compile: openldap-compile
403 endif
404 ifneq ($(BR2_PACKAGE_PHP5_MOD_MYSQL),)
405 php5-compile: mysql-compile
406 endif
407 ifneq ($(BR2_PACKAGE_PHP5_MOD_PCRE),)
408 php5-compile: pcre-compile
409 endif
410 ifneq ($(BR2_PACKAGE_PHP5_MOD_PGSQL),)
411 php5-compile: postgresql-compile
412 endif
413 ifneq ($(BR2_PACKAGE_PHP5_MOD_SQLITE),)
414 php5-compile: sqlite2-compile
415 endif
416 ifneq ($(BR2_PACKAGE_PHP5_MOD_XML),)
417 php5-compile: expat-compile
418 endif
419
420 pmacct-compile: libpcap-compile
421 ifneq ($(BR2_COMPILE_PMACCT_MYSQL),)
422 pmacct-compile: mysql-compile
423 endif
424 ifneq ($(BR2_COMPILE_PMACCT_PGSQL),)
425 pmacct-compile: postgresql-compile
426 endif
427
428 rrs-compile: uclibc++-compile
429 ifneq ($(BR2_PACKAGE_RRS),)
430 rrs-compile: openssl-compile
431 endif
432
433 snort-compile: libnet-compile libpcap-compile pcre-compile
434 ifeq ($(BR2_PACKAGE_SNORT_WITH_MYSQL),y)
435 snort-compile: mysql-compile
436 endif
437 ifeq ($(BR2_PACKAGE_SNORT_WITH_PGSQL),y)
438 snort-compile: postgresql-compile
439 endif
440 ifeq ($(BR2_PACKAGE_SNORT_ENABLE_INLINE),y)
441 snort-compile: iptables-compile
442 endif
443
444 snort-wireless-compile: libnet-compile libpcap-compile pcre-compile
445 ifeq ($(BR2_PACKAGE_SNORT_WIRELESS_WITH_MYSQL),y)
446 snort-wireless-compile: mysql-compile
447 endif
448 ifeq ($(BR2_PACKAGE_SNORT_WIRELESS_WITH_PGSQL),y)
449 snort-wireless-compile: postgresql-compile
450 endif
451 ifeq ($(BR2_PACKAGE_SNORT_WIRELESS_ENABLE_INLINE),y)
452 snort-wireless-compile: iptables-compile
453 endif
454
455 ulogd-compile: iptables-compile
456 ifneq ($(BR2_PACKAGE_ULOGD_MOD_MYSQL),)
457 ulogd-compile: mysql-compile
458 endif
459 ifneq ($(BR2_PACKAGE_ULOGD_MOD_PGSQL),)
460 ulogd-compile: postgresql-compile
461 endif
462
463 sdk-compile: $(DEV_LIBS_COMPILE) $(SDK_DEFAULT_COMPILE)
464
465 $(STAMP_DIR):
466 mkdir -p $@
467
468 $(TARGET_DIR):
469 mkdir -p $(TARGET_DIR)
470
471 %-prepare: $(STAMP_DIR) $(TARGET_DIR)
472 @[ -f $(STAMP_DIR)/.$@ ] || { \
473 $(START_TRACE) "package/$(patsubst %-prepare,%,$@)/prepare: "; \
474 $(MAKE) -C $(patsubst %-prepare,%,$@) prepare && { \
475 touch $(STAMP_DIR)/.$@; \
476 $(CMD_TRACE) " done"; \
477 $(END_TRACE); \
478 } \
479 }
480
481 %-compile:
482 @[ -f $(STAMP_DIR)/.$@ ] || { \
483 $(START_TRACE) "package/$(patsubst %-compile,%,$@)/compile: "; \
484 $(MAKE) -C $(patsubst %-compile,%,$@) compile && { \
485 touch $(STAMP_DIR)/.$(patsubst %-compile,%,$@)-prepare; \
486 touch $(STAMP_DIR)/.$@; \
487 $(CMD_TRACE) " done"; \
488 $(END_TRACE); \
489 } \
490 }
491
492 %-install: %-compile
493 @$(START_TRACE) "package/$(patsubst %-install,%,$@)/install: "
494 @$(MAKE) -C $(patsubst %-install,%,$@) install
495 @$(CMD_TRACE) " done"
496 @$(END_TRACE)
497
498 %-rebuild:
499 @$(START_TRACE) "package/$(patsubst %-rebuild,%,$@)/rebuild: "
500 @rm -f $(STAMP_DIR)/.$(patsubst %-rebuild,%,$@)-*
501 $(MAKE) -C $(patsubst %-rebuild,%,$@) rebuild
502 @$(CMD_TRACE) " done"
503 @$(END_TRACE)
504
505 %-clean:
506 @$(START_TRACE) "package/$(patsubst %-clean,%,$@)/clean: "
507 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
508 @rm -f $(STAMP_DIR)/.$(patsubst %-clean,%,$@)-*
509 @$(CMD_TRACE) " done"
510 @$(END_TRACE)
511