1d271ffbff58b621249b396fbbb72ccebf887c5c
[openwrt.git] / package / Makefile
1 # Main makefile for the packages
2 include $(TOPDIR)/rules.mk
3
4 package-:=tcp_wrappers
5 package-y:=nvram
6 package-$(BR2_PACKAGE_AICCU) += aiccu
7 package-$(BR2_PACKAGE_AMWALL) += amwall
8 package-$(BR2_PACKAGE_ARPTABLES) += arptables
9 package-$(BR2_PACKAGE_ARPWATCH) += arpwatch
10 package-$(BR2_PACKAGE_ASTERISK) += asterisk
11 package-$(BR2_PACKAGE_ATFP) += atftp
12 package-$(BR2_PACKAGE_BIND) += bind
13 package-$(BR2_PACKAGE_BLUEZ_LIBS) += bluez-libs
14 package-$(BR2_PACKAGE_BLUEZ_UTILS) += bluez-utils
15 package-$(BR2_PACKAGE_BRIDGE) += bridge
16 package-$(BR2_PACKAGE_BUSYBOX) += busybox
17 package-$(BR2_PACKAGE_BWM) += bwm
18 package-$(BR2_PACKAGE_CGILIB) += cgilib
19 package-$(BR2_PACKAGE_CHILLISPOT) += chillispot
20 package-$(BR2_PACKAGE_CIFSMOUNT) += cifsmount
21 package-$(BR2_PACKAGE_CUPS) += cups
22 package-$(BR2_PACKAGE_CYRUS_SASL) += cyrus-sasl
23 package-$(BR2_PACKAGE_DHCP) += dhcp
24 package-$(BR2_PACKAGE_DHCP_FORWARDER) += dhcp-forwarder
25 package-$(BR2_PACKAGE_DNSMASQ) += dnsmasq
26 package-$(BR2_PACKAGE_DOSFSTOOLS) += dosfstools
27 package-$(BR2_PACKAGE_DROPBEAR) += dropbear
28 package-$(BR2_PACKAGE_DSNIFF) += dsniff
29 package-$(BR2_PACKAGE_E2FSPROGS) += e2fsprogs
30 package-$(BR2_PACKAGE_EBTABLES) += ebtables
31 package-$(BR2_PACKAGE_ETHER_WAKE) += ether-wake
32 package-$(BR2_COMPILE_EXPAT) += expat
33 package-$(BR2_PACKAGE_EZIPUPDATE) += ez-ipupdate
34 package-$(BR2_PACKAGE_FPING) += fping
35 package-$(BR2_PACKAGE_FPROBE) += fprobe
36 package-$(BR2_PACKAGE_FPROBE_ULOG) += fprobe-ulog
37 package-$(BR2_PACKAGE_FREERADIUS) += freeradius
38 package-$(BR2_PACKAGE_FREETYPE) += freetype
39 package-$(BR2_PACKAGE_FRICKIN) += frickin
40 package-$(BR2_PACKAGE_FUSE) += fuse
41 package-$(BR2_PACKAGE_GDBSERVER) += gdbserver
42 package-$(BR2_PACKAGE_GLIB) += glib
43 package-$(BR2_PACKAGE_GMP) += gmp
44 package-$(BR2_COMPILE_GNUTLS) += gnutls
45 package-$(BR2_PACKAGE_HASERL) += haserl
46 package-$(BR2_PACKAGE_HOSTAPD) += hostapd
47 package-$(BR2_PACKAGE_HOWL) += howl
48 package-$(BR2_PACKAGE_HTPDATE) += htpdate
49 package-$(BR2_PACKAGE_IPKG) += ipkg
50 package-$(BR2_PACKAGE_IPROUTE2) += iproute2
51 package-$(BR2_PACKAGE_IPTABLES) += iptables
52 package-$(BR2_PACKAGE_IRSSI) += irssi
53 package-$(BR2_PACKAGE_KISMET) += kismet
54 package-$(BR2_PACKAGE_L2TPD) += l2tpd
55 package-$(BR2_PACKAGE_LCD4LINUX) += lcd4linux
56 package-$(BR2_PACKAGE_LESS) += less
57 package-$(BR2_PACKAGE_LIBAMSEL) += libamsel
58 package-$(BR2_PACKAGE_LIBART) += libart
59 package-$(BR2_PACKAGE_LIBDAEMON) += libdaemon
60 package-$(BR2_PACKAGE_LIBDB) += libdb
61 package-$(BR2_PACKAGE_LIBELF) += libelf
62 package-$(BR2_PACKAGE_LIBEVENT) += libevent
63 package-$(BR2_PACKAGE_LIBFFI_SABLE) += libffi-sable
64 package-$(BR2_PACKAGE_LIBGCRYPT) += libgcrypt
65 package-$(BR2_PACKAGE_LIBGD) += libgd
66 package-$(BR2_PACKAGE_LIBGDBM) += libgdbm
67 package-$(BR2_PACKAGE_LIBGPG_ERROR) += libgpg-error
68 package-$(BR2_PACKAGE_LIBNET) += libnet
69 package-$(BR2_PACKAGE_LIBNIDS) += libnids
70 package-$(BR2_PACKAGE_LIBOSIP2) += libosip2
71 package-$(BR2_PACKAGE_LIBPCAP) += libpcap
72 package-$(BR2_PACKAGE_LIBPNG) += libpng
73 package-$(BR2_PACKAGE_LIBPTHREAD) += libpthread
74 package-$(BR2_PACKAGE_LIBTASN1) += libtasn1
75 package-$(BR2_PACKAGE_LIBTOOL) += libtool
76 package-$(BR2_PACKAGE_LIBUSB) += libusb
77 package-$(BR2_PACKAGE_LIBXML2) += libxml2
78 package-$(BR2_PACKAGE_LIBXSLT) += libxslt
79 package-$(BR2_PACKAGE_LIGHTTPD) += lighttpd
80 package-$(BR2_PACKAGE_LINUX_ATM) += linux-atm
81 package-$(BR2_PACKAGE_LUA) += lua
82 package-$(BR2_PACKAGE_LZO) += lzo
83 package-$(BR2_PACKAGE_MARADNS) += maradns
84 package-$(BR2_PACKAGE_MATRIXSSL) += matrixssl
85 package-$(BR2_PACKAGE_MICROCOM) += microcom
86 package-$(BR2_PACKAGE_MICROPERL) += microperl
87 package-$(BR2_PACKAGE_MINI_HTTPD) += mini_httpd
88 package-$(BR2_PACKAGE_MINI_SENDMAIL) += mini_sendmail
89 package-$(BR2_PACKAGE_MONIT) += monit
90 package-$(BR2_PACKAGE_MTD) += mtd
91 package-$(BR2_PACKAGE_MYSQL) += mysql
92 package-$(BR2_PACKAGE_NCURSES) += ncurses
93 package-$(BR2_PACKAGE_NDISC) += ndisc
94 package-$(BR2_PACKAGE_NET_SNMP) += net-snmp
95 package-$(BR2_PACKAGE_NFS_SERVER) += nfs-server
96 package-$(BR2_PACKAGE_NMAP) += nmap
97 package-$(BR2_PACKAGE_NOCATSPLASH) += nocatsplash
98 package-$(BR2_PACKAGE_NTPCLIENT) += ntpclient
99 package-$(BR2_PACKAGE_OLSRD) += olsrd
100 package-$(BR2_PACKAGE_OPENCDK) += opencdk
101 package-$(BR2_PACKAGE_OPENLDAP) += openldap
102 package-$(BR2_PACKAGE_OPENNTPD) += openntpd
103 package-$(BR2_PACKAGE_OPENSSH) += openssh
104 package-$(BR2_PACKAGE_OPENSSL) += openssl
105 package-$(BR2_PACKAGE_OPENSWAN) += openswan
106 package-$(BR2_PACKAGE_OPENVPN) += openvpn
107 package-$(BR2_PACKAGE_OSIRIS) += osiris
108 package-$(BR2_PACKAGE_PARPROUTED) += parprouted
109 package-$(BR2_PACKAGE_PCRE) += pcre
110 package-$(BR2_COMPILE_PHP4) += php4
111 package-$(BR2_COMPILE_PHP5) += php5
112 package-$(BR2_PACKAGE_PICOCOM) += picocom
113 package-$(BR2_PACKAGE_PMACCT) += pmacct
114 package-$(BR2_PACKAGE_POPT) += popt
115 package-$(BR2_PACKAGE_PORTMAP) += portmap
116 package-$(BR2_PACKAGE_PORTSENTRY) += portsentry
117 package-$(BR2_PACKAGE_POSTGRESQL) += postgresql
118 package-$(BR2_PACKAGE_PPP) += ppp
119 package-$(BR2_PACKAGE_PPTP) += pptp
120 package-$(BR2_PACKAGE_PPTPD) += pptpd
121 package-$(BR2_PACKAGE_QUAGGA) += quagga
122 package-$(BR2_PACKAGE_RADVD) += radvd
123 package-$(BR2_PACKAGE_READLINE) += readline
124 package-$(BR2_PACKAGE_ROBOCFG) += robocfg
125 package-$(BR2_PACKAGE_RP_PPPOE) += rp-pppoe
126 package-$(BR2_PACKAGE_RRDCOLLECT) += rrdcollect
127 package-$(BR2_COMPILE_RRDTOOL) += rrdtool
128 package-$(BR2_PACKAGE_RSYNC) += rsync
129 package-$(BR2_PACKAGE_SABLEVM) += sablevm
130 package-$(BR2_PACKAGE_SABLEVM_CLASSPATH) += sablevm-classpath
131 package-$(BR2_COMPILE_SAMBA) += samba
132 package-$(BR2_PACKAGE_SCREEN) += screen
133 package-$(BR2_PACKAGE_SDK) += sdk
134 package-$(BR2_PACKAGE_SER) += ser
135 package-$(BR2_PACKAGE_SETSERIAL) += setserial
136 package-$(BR2_PACKAGE_SHAT) += shat
137 package-$(BR2_PACKAGE_SHFS) += shfs
138 package-$(BR2_PACKAGE_SIPROXD) += siproxd
139 package-$(BR2_PACKAGE_SIPSAK) += sipsak
140 package-$(BR2_PACKAGE_SNORT) += snort
141 package-$(BR2_PACKAGE_SPEEX) += speex
142 package-$(BR2_PACKAGE_SQLITE) += sqlite
143 package-$(BR2_PACKAGE_SQLITE2) += sqlite2
144 package-$(BR2_PACKAGE_SSMTP) += ssmtp
145 package-$(BR2_PACKAGE_STRACE) += strace
146 package-$(BR2_PACKAGE_TCPDUMP) += tcpdump
147 package-$(BR2_PACKAGE_TINC) += tinc
148 package-$(BR2_PACKAGE_TOR) += tor
149 package-$(BR2_PACKAGE_TTCP) += ttcp
150 package-$(BR2_PACKAGE_UCLIBCXX) += uclibc++
151 package-$(BR2_PACKAGE_ULOGD) += ulogd
152 package-$(BR2_PACKAGE_USBUTILS) += usbutils
153 package-$(BR2_PACKAGE_VTUN) += vtun
154 package-$(BR2_PACKAGE_VSFTPD) += vsftpd
155 package-$(BR2_PACKAGE_WIFICONF) += wificonf
156 package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools
157 package-$(BR2_PACKAGE_WOL) += wol
158 package-$(BR2_PACKAGE_WPA_SUPPLICANT) += wpa_supplicant
159 package-$(BR2_PACKAGE_WPUT) += wput
160 package-$(BR2_PACKAGE_XINETD) += xinetd
161 package-$(BR2_PACKAGE_ZLIB) += zlib
162
163 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 nvram
164 DEV_LIBS_COMPILE:=$(patsubst %,%-compile,$(DEV_LIBS))
165 SDK_DEFAULT_PACKAGES:=busybox dnsmasq iptables wireless-tools dropbear bridge ipkg ppp
166 SDK_DEFAULT_COMPILE:=$(patsubst %,%-compile,$(SDK_DEFAULT_PACKAGES))
167 COMPILE_PACKAGES:=$(patsubst %,%-compile,$(package-y) $(package-m))
168 INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y))
169
170 all: compile
171 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
172 compile: $(COMPILE_PACKAGES)
173 install: base-files-install $(INSTALL_PACKAGES)
174
175 $(COMPILE_PACKAGES): base-files-compile
176 $(INSTALL_PACKAGES): base-files-install
177
178 amwall-compile: libamsel-compile
179 arpwatch-compile: libpcap-compile
180 bind-compile: openssl-compile
181 cyrus-sasl-compile: openssl-compile
182 dropbear-compile: zlib-compile
183 dsniff-compile: libnids-compile openssl-compile libgdbm-compile
184 freetype-compile: zlib-compile
185 fprobe-compile: libpcap-compile
186 gdbserver-compile: ncurses-compile
187 gnutls-compile: libgcrypt-compile opencdk-compile libtasn1-compile
188 irssi-compile: glib-compile ncurses-compile
189 hostapd-compile: openssl-compile
190 kismet-compile: uclibc++-compile libpcap-compile ncurses-compile
191 less-compile: ncurses-compile
192 lcd4linux-compile: ncurses-compile
193 libgcrypt-compile: libgpg-error-compile
194 libgd-compile: libpng-compile
195 libnet-compile: libpcap-compile
196 libnids-compile: libnet-compile
197 libxml2-compile: zlib-compile
198 libxslt-compile: libxml2-compile
199 lighttpd-compile: openssl-compile pcre-compile
200 mini_httpd-compile: matrixssl-compile
201 mysql-compile: ncurses-compile zlib-compile
202 net-snmp-compile: libelf-compile
203 nfs-server-compile: portmap-compile
204 nmap-compile: uclibc++-compile pcre-compile libpcap-compile
205 nocatsplash-compile: glib-compile
206 opencdk-compile: libgcrypt-compile
207 openldap-compile: cyrus-sasl-compile openssl-compile
208 openssh-compile: zlib-compile openssl-compile
209 openssl-compile: zlib-compile
210 openswan-compile: gmp-compile
211 osiris-compile: openssl-compile
212 portmap-compile: tcp_wrappers-compile
213 postgresql-compile: zlib-compile
214 quagga-compile: readline-compile ncurses-compile
215 rrdcollect-compile: rrdtool-compile
216 rrdtool-compile: cgilib-compile freetype-compile libart-compile libpng-compile
217 rsync-compile: popt-compile
218 samba-compile: cups-compile
219 screen-compile: ncurses-compile
220 siproxd-compile: libosip2-compile
221 sipsak-compile: openssl-compile
222 sqlite-compile: ncurses-compile readline-compile
223 sqlite2-compile: ncurses-compile readline-compile
224 tcpdump-compile: libpcap-compile
225 tinc-compile: zlib-compile openssl-compile lzo-compile
226 tor-compile: libevent-compile openssl-compile zlib-compile
227 usbutils-compile: libusb-compile
228 vtun-compile: zlib-compile openssl-compile lzo-compile
229 wificonf-compile: wireless-tools-compile nvram-compile
230 wpa_supplicant-compile: openssl-compile
231
232 asterisk-compile: bluez-libs-compile ncurses-compile openssl-compile
233 ifneq ($(BR2_PACKAGE_ASTERISK_CODEC_SPEEX),)
234 asterisk-compile: speex-compile
235 endif
236 ifneq ($(BR2_PACKAGE_ASTERISK_PGSQL),)
237 asterisk-compile: postgresql-compile
238 endif
239 ifneq ($(BR2_PACKAGE_ASTERISK_MYSQL),)
240 asterisk-compile: mysql-compile
241 endif
242
243 freeradius-compile: libtool-compile openssl-compile
244 ifneq ($(BR2_PACKAGE_FREERADIUS_MOD_LDAP),)
245 freeradius-compile: openldap-compile
246 endif
247 ifneq ($(BR2_PACKAGE_FREERADIUS_MOD_SQL_MYSQL),)
248 freeradius-compile: mysql-compile
249 endif
250 ifneq ($(BR2_PACKAGE_FREERADIUS_MOD_SQL_PGSQL),)
251 freeradius-compile: postgresql-compile
252 endif
253
254 openvpn-compile: openssl-compile
255 ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
256 openvpn-compile: lzo-compile
257 endif
258
259 php4-compile: openssl-compile zlib-compile
260 ifneq ($(BR2_PACKAGE_PHP4_MOD_GD),)
261 php4-compile: libgd-compile libpng-compile
262 endif
263 ifneq ($(BR2_PACKAGE_PHP4_MOD_LDAP),)
264 php4-compile: openldap-compile
265 endif
266 ifneq ($(BR2_PACKAGE_PHP4_MOD_MYSQL),)
267 php4-compile: mysql-compile
268 endif
269 ifneq ($(BR2_PACKAGE_PHP4_MOD_PCRE),)
270 php4-compile: pcre-compile
271 endif
272 ifneq ($(BR2_PACKAGE_PHP4_MOD_PGSQL),)
273 php4-compile: postgresql-compile
274 endif
275 ifneq ($(BR2_PACKAGE_PHP4_MOD_SQLITE),)
276 php4-compile: sqlite2-compile
277 endif
278 ifneq ($(BR2_PACKAGE_PHP4_MOD_XML),)
279 php4-compile: expat-compile
280 endif
281
282 php5-compile: openssl-compile zlib-compile
283 ifneq ($(BR2_PACKAGE_PHP5_MOD_GD),)
284 php5-compile: libgd-compile libpng-compile
285 endif
286 ifneq ($(BR2_PACKAGE_PHP5_MOD_LDAP),)
287 php5-compile: openldap-compile
288 endif
289 ifneq ($(BR2_PACKAGE_PHP5_MOD_MYSQL),)
290 php5-compile: mysql-compile
291 endif
292 ifneq ($(BR2_PACKAGE_PHP5_MOD_PCRE),)
293 php5-compile: pcre-compile
294 endif
295 ifneq ($(BR2_PACKAGE_PHP5_MOD_PGSQL),)
296 php5-compile: postgresql-compile
297 endif
298 ifneq ($(BR2_PACKAGE_PHP5_MOD_SQLITE),)
299 php5-compile: sqlite2-compile
300 endif
301 ifneq ($(BR2_PACKAGE_PHP5_MOD_XML),)
302 php5-compile: expat-compile
303 endif
304
305 pmacct-compile: libpcap-compile
306 ifneq ($(BR2_PACKAGE_PMACCT_MYSQL),)
307 pmacct-compile: mysql-compile
308 endif
309 ifneq ($(BR2_PACKAGE_PMACCT_PGSQL),)
310 pmacct-compile: postgresql-compile
311 endif
312
313 snort-compile: libnet-compile libpcap-compile pcre-compile
314 ifeq ($(BR2_PACKAGE_SNORT_MYSQL),y)
315 snort-compile: mysql-compile
316 endif
317 ifeq ($(BR2_PACKAGE_SNORT_PGSQL),y)
318 snort-compile: postgresql-compile
319 endif
320 ifeq ($(BR2_PACKAGE_SNORT_ENABLE_INLINE),y)
321 snort-compile: iptables-compile
322 endif
323
324 ulogd-compile: iptables-compile
325 ifneq ($(BR2_PACKAGE_ULOGD_MYSQL),)
326 ulogd-compile: mysql-compile
327 endif
328 ifneq ($(BR2_PACKAGE_ULOGD_PGSQL),)
329 ulogd-compile: postgresql-compile
330 endif
331
332 sdk-compile: $(DEV_LIBS_COMPILE) $(SDK_DEFAULT_COMPILE)
333
334 $(STAMP_DIR):
335 mkdir -p $@
336
337 %-prepare: $(STAMP_DIR)
338 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
339 @touch $(STAMP_DIR)/.$@
340
341 %-compile: %-prepare
342 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-compile,%,$@) compile
343 @touch $(STAMP_DIR)/.$@
344
345 %-install: %-compile
346 @$(MAKE) -C $(patsubst %-install,%,$@) \
347 TARGET_DIR="$(TARGET_DIR)" \
348 IPKG_CONF="$(IPKG_CONF)" \
349 BOARD="$(BOARD)" \
350 install
351
352 %-rebuild:
353 @rm -f $(STAMP_DIR)/.$(patsubst %-rebuild,%,$@)-*
354 $(MAKE) -C $(patsubst %-rebuild,%,$@) rebuild
355
356 %-clean:
357 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
358 @rm -f $(STAMP_DIR)/.$(patsubst %-clean,%,$@)-*
359
This page took 0.049781 seconds and 3 git commands to generate.