1# 2# Copyright 2005 Hon Hai Precision Ind. Co. Ltd. 3# All Rights Reserved. 4# No portions of this material shall be reproduced in any form without the 5# written permission of Hon Hai Precision Ind. Co. Ltd. 6# 7# All information contained in this document is Hon Hai Precision Ind. 8# Co. Ltd. company private, proprietary, and trade secret property and 9# are protected by international intellectual property laws and treaties. 10# 11# $Id$ 12# 13 14include config.mk 15include config.in 16 17# 18# Paths 19# 20# 21 22SUBDIRS := 23 24#SUBDIRS += dnsmasq 25SUBDIRS += dnsmasq-2.15 26SUBDIRS += udhcpd 27#SUBDIRS += ppp/pppoecd 28SUBDIRS += ppp-2.4.4/pppd pppoecd 29SUBDIRS += ntpclient 30SUBDIRS += bzip2 31 32ifeq ($(CONFIG_RIP),y) 33SUBDIRS += zebra 34endif 35 36ifeq ($(CONFIG_PPTP),y) 37#SUBDIRS += ppp-2.4.4/pppd pptp 38# SUBDIRS += ppp/pppd pptp 39SUBDIRS += pptp 40endif 41 42ifeq ($(CONFIG_L2TP),y) 43SUBDIRS += l2tpd-0.69 44endif 45 46#ifeq ($(CONFIG_BPA),y) 47#SUBDIRS += bpalogin 48#endif 49 50ifeq ($(CONFIG_DLNA),y) 51SUBDIRS += minidlna 52endif 53 54SUBDIRS += zeroconf-0.9 55 56#water, 10/30/2008, @samba 57ifeq ($(SAMBA_ENABLE_FLAG),y) 58SUBDIRS += samba-3.0.13 59SUBDIRS += bftpd-1.6.6 60endif 61 62# pling added 05/04/2009, for NTFS-3g 63ifeq ($(CONFIG_NTFS_3G),y) 64SUBDIRS += ntfs-3g-2009.3.8 65endif 66#pling added 05/07/2009, for mtools (to read FAT volume label) 67ifeq ($(CONFIG_MTOOLS),y) 68SUBDIRS += mtools-4.0.10 69endif 70#Foxconn add start, stanley, 01/16/2010 @IGMP 71ifeq ($(CONFIG_IGMP_PROXY),y) 72SUBDIRS += IGMP-PROXY 73endif 74#Foxconn add end, stanley, 01/16/2010 @IGMP 75SUBDIRS += iproute2 76 77ifeq ($(CONFIG_TIMEMACHINE),y) 78SUBDIRS += timemachine 79endif 80 81ifeq ($(CONFIG_REMOTE_SMB_CONF), y) 82SUBDIRS += curl-7.23.1 83endif 84ifeq ($(CONFIG_WGET),y) 85OPENSSL_DIR = $(GPLTOPDIR)/openssl 86WGET_DIR = wget-1.12 87SUBDIRS += $(WGET_DIR) 88endif 89all: ECOSYSTEM 90 for i in ${SUBDIRS}; do \ 91 (cd $$i; make) || exit 1; \ 92 done 93 94ECOSYSTEM: 95ifeq ($(CONFIG_WGET),y) 96 mkdir -p $(OPENSSL_DIR)/lib && cp $(OPENSSL_DIR)/libssl.so $(OPENSSL_DIR)/lib/ 97 cd $(WGET_DIR) && $(CONFIGURE) CFLAGS="$(CFLAGS) -DMB_CUR_MAX=1" LDFLAGS="$(LDFLAGS) -L$(OPENSSL_DIR)" \ 98 --with-ssl=openssl --with-libssl-prefix=$(OPENSSL_DIR) --prefix=$(TARGETDIR) 99endif 100 # Foxconn add end by Hank for ecosystem support 08/14/2012 101 102install: 103 for i in ${SUBDIRS}; do \ 104 (cd $$i; make install) || exit 1; \ 105 done 106 107clean: 108 for i in ${SUBDIRS}; do \ 109 (cd $$i; make clean); \ 110 done 111 112.PHONY: $(SUBDIRS) 113