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