Imported Upstream version 7.44.0
[platform/upstream/curl.git] / packages / TPF / curl.mak
1 #######################################################################
2 #                                                                     #
3 #  MAKEFILE NAME.....  curl.mak                                       #
4 #                                                                     #
5 #  DESCRIPTION.....    This is the makefile for libcurl.              #
6 #                                                                     #
7 #######################################################################
8
9 APP := CURL
10
11 TPF_RUN_TPFSOCHK := NO
12
13 #######################################################################
14 # Define any additional libs needed to link
15 #######################################################################
16
17 LIBS := CRYP CSSL
18
19 #######################################################################
20 # Define the envs needed to build this module
21 #######################################################################
22
23 maketpf_env := curllib
24 maketpf_env += openssl
25 maketpf_env += base_rt
26 maketpf_env += system
27
28 #######################################################################
29 # Segments to be compiled with gcc compiler
30 #######################################################################
31 #
32 ### lib directory:
33 include $(word 1,$(wildcard $(foreach d,$(TPF_ROOT),$d/opensource/curl/lib/Makefile.inc)) Makefile.inc_not_found)
34 C_SRC := $(CSOURCES)
35
36 #######################################################################
37 # Additions and overrides for gcc compiler flags
38 #######################################################################
39
40 # suppress expected warnings in the ported code:
41 CFLAGS_CURL += -w
42
43 # use SSL
44 # (overrides Curl's lib/config-tpf.h file)
45 CFLAGS_CURL += -DUSE_OPENSSL
46
47 # disable all protocols except FTP and HTTP
48 # (overrides Curl's lib/config-tpf.h file)
49 CFLAGS_CURL += -DCURL_DISABLE_DICT
50 CFLAGS_CURL += -DCURL_DISABLE_FILE
51 CFLAGS_CURL += -DCURL_DISABLE_LDAP
52 CFLAGS_CURL += -DCURL_DISABLE_TELNET
53 CFLAGS_CURL += -DCURL_DISABLE_TFTP
54
55 #######################################################################
56 # Include the maketpf.rules
57 #######################################################################
58
59 include maketpf.rules
60