source: trunk/openwrt/package/Makefile @ 551

Last change on this file since 551 was 551, checked in by nbd, 11 years ago

make lzo and server support in openvpn optional

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1# Main makefile for the packages
2include $(TOPDIR)/rules.mk
3
4package-y:=openwrt
5package-$(BR2_PACKAGE_ARPTABLES) += arptables
6package-$(BR2_PACKAGE_ARPWATCH) += arpwatch
7package-$(BR2_PACKAGE_BRIDGE) += bridge
8package-$(BR2_PACKAGE_BUSYBOX) += busybox
9package-$(BR2_PACKAGE_CHILLISPOT) += chillispot
10package-$(BR2_PACKAGE_CIFSMOUNT) += cifsmount
11package-$(BR2_PACKAGE_CUPS) += cups
12package-$(BR2_PACKAGE_DROPBEAR) += dropbear
13package-$(BR2_PACKAGE_DNSMASQ) += dnsmasq
14package-$(BR2_PACKAGE_EBTABLES) += ebtables
15package-$(BR2_PACKAGE_EZIPUPDATE) += ez-ipupdate
16package-$(BR2_PACKAGE_FPING) += fping
17package-$(BR2_PACKAGE_GLIB) += glib
18package-$(BR2_PACKAGE_GMP) += gmp
19package-$(BR2_PACKAGE_HASERL) += haserl
20package-$(BR2_PACKAGE_IPTABLES) += iptables
21package-$(BR2_PACKAGE_IPROUTE2) += iproute2
22package-$(BR2_PACKAGE_LCD4LINUX) += lcd4linux
23package-$(BR2_PACKAGE_LIBELF) += libelf
24package-$(BR2_PACKAGE_LZO) += lzo
25package-$(BR2_PACKAGE_MATRIXSSL) += matrixssl
26package-$(BR2_PACKAGE_MICROPERL) += microperl
27package-$(BR2_PACKAGE_NCURSES) += ncurses
28package-$(BR2_PACKAGE_NFSD) += nfs-server
29package-$(BR2_PACKAGE_NOCATSPLASH) += nocatsplash
30package-$(BR2_PACKAGE_OPENSSL) += openssl
31package-$(BR2_PACKAGE_OPENNTPD) += openntpd
32package-$(BR2_PACKAGE_OPENVPN) += openvpn
33package-$(BR2_PACKAGE_PCRE) += pcre
34package-$(BR2_PACKAGE_POPT) += popt
35package-$(BR2_PACKAGE_PORTMAP) += portmap
36package-$(BR2_PACKAGE_PPP) += ppp
37package-$(BR2_PACKAGE_PPTP) += pptp
38package-$(BR2_PACKAGE_PPTPD) += pptpd
39package-$(BR2_PACKAGE_QUAGGA) += quagga
40package-$(BR2_PACKAGE_SER) += ser
41package-$(BR2_PACKAGE_SETSERIAL) += setserial
42package-$(BR2_PACKAGE_STRACE) += strace
43package-$(BR2_PACKAGE_TCPDUMP) += tcpdump
44package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools
45package-$(BR2_PACKAGE_WOL) += wol
46package-$(BR2_PACKAGE_ZLIB) += zlib
47package-$(BR2_PACKAGE_DHCPFWD) += dhcp-forwarder
48package-$(BR2_PACKAGE_LIBNET) += libnet
49package-$(BR2_PACKAGE_LIBMYSQLCLIENT) += mysql
50package-$(BR2_PACKAGE_LIBPQ) += postgresql
51
52all: compile install
53clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m)) linux-clean
54compile: $(patsubst %,%-compile,$(package-y) $(package-m))
55install: $(patsubst %,%-install,$(package-y))
56
57ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
58openvpn-compile: lzo-compile
59endif
60
61nocatsplash-compile: glib-compile
62arpwatch-compile: libpcap-compile
63tcpdump-compile: libpcap-compile
64dropbear-compile: zlib-compile
65openssl-compile: zlib-compile
66openvpn-compile: openssl-compile
67nfs-server-compile: portmap-compile
68portmap-compile: tcp_wrappers-compile
69lcd4linux-compile: ncurses-compile
70libnet-compile: libpcap-compile
71mysql-compile: ncurses-compile zlib-compile
72postgresql-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
Note: See TracBrowser for help on using the repository browser.