source: trunk/openwrt/package/Makefile @ 2050

Last change on this file since 2050 was 2050, checked in by nico, 11 years ago

add mtr (thanks to Thomas Reifferscheid)

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