fix reboot in mtd.c
[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_ARPTABLES) += arptables
6 package-$(BR2_PACKAGE_ARPWATCH) += arpwatch
7 package-$(BR2_PACKAGE_BRIDGE) += bridge
8 package-$(BR2_PACKAGE_BUSYBOX) += busybox
9 package-$(BR2_PACKAGE_CHILLISPOT) += chillispot
10 package-$(BR2_PACKAGE_CIFSMOUNT) += cifsmount
11 package-$(BR2_PACKAGE_CUPS) += cups
12 package-$(BR2_PACKAGE_DROPBEAR) += dropbear
13 package-$(BR2_PACKAGE_DNSMASQ) += dnsmasq
14 package-$(BR2_PACKAGE_EBTABLES) += ebtables
15 package-$(BR2_PACKAGE_EZIPUPDATE) += ez-ipupdate
16 package-$(BR2_PACKAGE_FPING) += fping
17 package-$(BR2_PACKAGE_GLIB) += glib
18 package-$(BR2_PACKAGE_GMP) += gmp
19 package-$(BR2_PACKAGE_HASERL) += haserl
20 package-$(BR2_PACKAGE_IPTABLES) += iptables
21 package-$(BR2_PACKAGE_IPROUTE2) += iproute2
22 package-$(BR2_PACKAGE_LCD4LINUX) += lcd4linux
23 package-$(BR2_PACKAGE_LIBELF) += libelf
24 package-$(BR2_PACKAGE_LZO) += lzo
25 package-$(BR2_PACKAGE_MATRIXSSL) += matrixssl
26 package-$(BR2_PACKAGE_MICROPERL) += microperl
27 package-$(BR2_PACKAGE_NCURSES) += ncurses
28 package-$(BR2_PACKAGE_NFSD) += nfs-server
29 package-$(BR2_PACKAGE_NOCATSPLASH) += nocatsplash
30 package-$(BR2_PACKAGE_OPENSSL) += openssl
31 package-$(BR2_PACKAGE_OPENNTPD) += openntpd
32 package-$(BR2_PACKAGE_OPENVPN) += openvpn
33 package-$(BR2_PACKAGE_PCRE) += pcre
34 package-$(BR2_PACKAGE_POPT) += popt
35 package-$(BR2_PACKAGE_PORTMAP) += portmap
36 package-$(BR2_PACKAGE_PPP) += ppp
37 package-$(BR2_PACKAGE_PPTP) += pptp
38 package-$(BR2_PACKAGE_PPTPD) += pptpd
39 package-$(BR2_PACKAGE_QUAGGA) += quagga
40 package-$(BR2_PACKAGE_SER) += ser
41 package-$(BR2_PACKAGE_SETSERIAL) += setserial
42 package-$(BR2_PACKAGE_STRACE) += strace
43 package-$(BR2_PACKAGE_TCPDUMP) += tcpdump
44 package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools
45 package-$(BR2_PACKAGE_WOL) += wol
46 package-$(BR2_PACKAGE_ZLIB) += zlib
47 package-$(BR2_PACKAGE_DHCPFWD) += dhcp-forwarder
48 package-$(BR2_PACKAGE_LIBNET) += libnet
49 package-$(BR2_PACKAGE_LIBMYSQLCLIENT) += mysql
50 package-$(BR2_PACKAGE_LIBPQ) += postgresql
51
52 all: compile install
53 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m)) linux-clean
54 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
55 install: $(patsubst %,%-install,$(package-y))
56
57 ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
58 openvpn-compile: lzo-compile
59 endif
60
61 nocatsplash-compile: glib-compile
62 arpwatch-compile: libpcap-compile
63 tcpdump-compile: libpcap-compile
64 dropbear-compile: zlib-compile
65 openssl-compile: zlib-compile
66 openvpn-compile: openssl-compile
67 nfs-server-compile: portmap-compile
68 portmap-compile: tcp_wrappers-compile
69 lcd4linux-compile: ncurses-compile
70 libnet-compile: libpcap-compile
71 mysql-compile: ncurses-compile zlib-compile
72 postgresql-compile: zlib-compile
73
74 $(patsubst %,%-prepare,$(package-y) $(package-m)): linux-install
75
76 %-prepare:
77 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
78 @touch $(STAMP_DIR)/.$@
79
80 %-compile: %-prepare
81 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-compile,%,$@) compile
82 @touch $(STAMP_DIR)/.$@
83
84 %-install: %-compile
85 @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-install,%,$@) install
86 @touch $(STAMP_DIR)/.$@
87
88 %-clean:
89 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
90 @rm -f $(STAMP_DIR)/.$(patsubst %-clean,%,$@)-*
91
This page took 0.055699 seconds and 5 git commands to generate.