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