1
2
3export CROSS_COMPILE = "mipsel-uclibc-linux26-"
4
5#export PATH +=/projects/hnd/tools/linux/hndtools-mipsel-linux-uclibc-4.2.3/bin
6
7export CPPFLAGS += -I$(TOP)/../../ap/gpl/openssl/tmp/usr/local/ssl/include -I$(TOP)/../../ap/gpl/openssl/tmp/usr/local/ssl/include/openssl
8export LDFLAGS += -L$(TOP)/../../ap/gpl/openssl/tmp/usr/local/ssl/lib
9export PKG_CONFIG_PATH += $(TOP)/../../ap/gpl/openssl/tmp/usr/local/ssl/lib/pkgconfig
10
11#export CC = "mipsel-uclibc-linux26-gcc"
12##export AR = "mipsel-uclibc-linux26-ar"
13#export AS = "mipsel-uclibc-linux26-as"
14#export LD = "mipsel-uclibc-linux26-ld"
15#export NM = "mipsel-uclibc-linux26-nm"
16#export RANLIB = "mipsel-uclibc-linux26-ranlib"
17
18
19all: .conf  makecurl
20.conf:
21	cd source ; \
22	./configure 	--target=mipsel-linux \
23			--host=mipsel-linux \
24			--build=$(BUILD) \
25			--prefix='$(shell pwd)/tmp' \
26			--with-ssl \
27            		--exec-prefix='$(TARGETDIR)' \
28			--disable-manual \
29			--disable-proxy \
30			--without-zlib \
31			--disable-cookies \
32			--disable-ipv6 \
33			--disable-shared \
34            		--disable-dict \
35			--disable-file \
36			--disable-ftp \
37			--disable-gopher \
38			--disable-imap \
39			--disable-pop3 \
40            		--disable-smtp \
41			--disable-telnet \
42			--disable-tftp \
43			--disable-rtsp  
44
45	touch .conf
46makecurl:
47	cd source ; make
48
49clean: .conf cleancurl
50	
51cleancurl: 
52	cd source ; make clean	
53
54distclean:
55	rm -rf .conf
56	cd source ; make clean
57
58install:
59	install -d $(TARGETDIR)/sbin/
60	install -m 755 $(TOP)/../../ap/gpl/curl-7.23.1/source/src/curl  $(TARGETDIR)/sbin
61	$(STRIP) $(TARGETDIR)/sbin/curl
62	
63