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