42e222b66057fd178a3b02c2d65acf2d0039d762
[openwrt.git] / 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_MICROPERL) += microperl
22 package-$(BR2_PACKAGE_LIBELF) += libelf
23 package-$(BR2_PACKAGE_STRACE) += strace
24
25 all: compile install
26 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m)) linux-clean
27 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
28 install: $(patsubst %,%-install,$(package-y))
29
30 dropbear-compile: zlib-compile
31 openssl-compile: zlib-compile
32 openvpn-compile: openssl-compile
33 $(patsubst %,%-prepare,$(package-y) $(package-m)): linux-install
34
35 %-prepare:
36 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
37 @touch $(STAMP_DIR)/.$@
38
39 %-compile: %-prepare
40 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-compile,%,$@) compile
41 @touch $(STAMP_DIR)/.$@
42
43 %-install: %-compile
44 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-install,%,$@) install
45 @touch $(STAMP_DIR)/.$@
46
47 %-clean:
48 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
49 @rm -f $(STAMP_DIR)/.$(patsubst %-clean,%,$@)-*
50
This page took 0.042454 seconds and 3 git commands to generate.