Add haserl package
[openwrt/svn-archive/archive.git] / openwrt / package / Makefile
1 # Main makefile for the packages
2 include $(TOPDIR)/rules.mk
3
4 package-y:=openwrt
5 package-$(BR2_PACKAGE_BRIDGE) += bridge
6 package-$(BR2_PACKAGE_BUSYBOX) += busybox
7 package-$(BR2_PACKAGE_DROPBEAR) += dropbear
8 package-$(BR2_PACKAGE_DNSMASQ) += dnsmasq
9 package-$(BR2_PACKAGE_EBTABLES) += ebtables
10 package-$(BR2_PACKAGE_ARPTABLES) += arptables
11 package-$(BR2_PACKAGE_IPTABLES) += iptables
12 package-$(BR2_PACKAGE_PPP) += ppp
13 package-$(BR2_PACKAGE_LZO) += lzo
14 package-$(BR2_PACKAGE_ZLIB) += zlib
15 package-$(BR2_PACKAGE_MATRIXSSL) += matrixssl
16 package-$(BR2_PACKAGE_OPENSSL) += openssl
17 package-$(BR2_PACKAGE_OPENVPN) += openvpn
18 package-$(BR2_PACKAGE_POPT) += popt
19 package-$(BR2_PACKAGE_PPTPD) += pptpd
20 package-$(BR2_PACKAGE_IPROUTE2) += iproute2
21 package-$(BR2_PACKAGE_HASERL) += haserl
22 package-$(BR2_PACKAGE_MICROPERL) += microperl
23 package-$(BR2_PACKAGE_LIBELF) += libelf
24 package-$(BR2_PACKAGE_STRACE) += strace
25 package-$(BR2_PACKAGE_TCPDUMP) += tcpdump
26
27 all: compile install
28 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m)) linux-clean
29 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
30 install: $(patsubst %,%-install,$(package-y))
31
32 tcpdump-compile: libpcap-compile
33 dropbear-compile: zlib-compile
34 openssl-compile: zlib-compile
35 openvpn-compile: openssl-compile
36 $(patsubst %,%-prepare,$(package-y) $(package-m)): linux-install
37
38 %-prepare:
39 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
40 @touch $(STAMP_DIR)/.$@
41
42 %-compile: %-prepare
43 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-compile,%,$@) compile
44 @touch $(STAMP_DIR)/.$@
45
46 %-install: %-compile
47 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-install,%,$@) install
48 @touch $(STAMP_DIR)/.$@
49
50 %-clean:
51 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
52 @rm -f $(STAMP_DIR)/.$(patsubst %-clean,%,$@)-*
53