compile/install kmod packages only if their kernel configuration options are enabled...
[openwrt.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_NCURSES) += ncurses
17 package-$(BR2_PACKAGE_OPENSSL) += openssl
18 package-$(BR2_PACKAGE_OPENVPN) += openvpn
19 package-$(BR2_PACKAGE_PCRE) += pcre
20 package-$(BR2_PACKAGE_POPT) += popt
21 package-$(BR2_PACKAGE_PPTP) += pptp
22 package-$(BR2_PACKAGE_PPTPD) += pptpd
23 package-$(BR2_PACKAGE_IPROUTE2) += iproute2
24 package-$(BR2_PACKAGE_HASERL) += haserl
25 package-$(BR2_PACKAGE_MICROPERL) += microperl
26 package-$(BR2_PACKAGE_LIBELF) += libelf
27 package-$(BR2_PACKAGE_STRACE) += strace
28 package-$(BR2_PACKAGE_TCPDUMP) += tcpdump
29 package-$(BR2_PACKAGE_LCD4LINUX) += lcd4linux
30
31 all: compile install
32 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m)) linux-clean
33 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
34 install: $(patsubst %,%-install,$(package-y))
35
36 tcpdump-compile: libpcap-compile
37 dropbear-compile: zlib-compile
38 openssl-compile: zlib-compile
39 openvpn-compile: openssl-compile
40 $(patsubst %,%-prepare,$(package-y) $(package-m)): linux-install
41
42 %-prepare:
43 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
44 @touch $(STAMP_DIR)/.$@
45
46 %-compile: %-prepare
47 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-compile,%,$@) compile
48 @touch $(STAMP_DIR)/.$@
49
50 %-install: %-compile
51 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-install,%,$@) install
52 @touch $(STAMP_DIR)/.$@
53
54 %-clean:
55 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
56 @rm -f $(STAMP_DIR)/.$(patsubst %-clean,%,$@)-*
57
This page took 0.045943 seconds and 5 git commands to generate.