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