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