xref: /curl/src/Makefile.inc (revision 250d6137)
1#***************************************************************************
2#                                  _   _ ____  _
3#  Project                     ___| | | |  _ \| |
4#                             / __| | | | |_) | |
5#                            | (__| |_| |  _ <| |___
6#                             \___|\___/|_| \_\_____|
7#
8# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
9#
10# This software is licensed as described in the file COPYING, which
11# you should have received as part of this distribution. The terms
12# are also available at https://curl.se/docs/copyright.html.
13#
14# You may opt to use, copy, modify, merge, publish, distribute and/or sell
15# copies of the Software, and permit persons to whom the Software is
16# furnished to do so, under the terms of the COPYING file.
17#
18# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19# KIND, either express or implied.
20#
21# SPDX-License-Identifier: curl
22#
23###########################################################################
24# ./src/Makefile.inc
25# Using the backslash as line continuation character might be problematic with
26# some make flavours. If we ever want to change this in a portable manner then
27# we should consider this idea :
28# CSRC1 = file1.c file2.c file3.c
29# CSRC2 = file4.c file5.c file6.c
30# CSOURCES = $(CSRC1) $(CSRC2)
31
32# libcurl sources to include in curltool lib we use for test binaries
33CURLTOOL_LIBCURL_CFILES = \
34  ../lib/base64.c \
35  ../lib/dynbuf.c
36
37# libcurl has sources that provide functions named curlx_* that are not part of
38# the official API, but we reuse the code here to avoid duplication.
39CURLX_CFILES = \
40  ../lib/base64.c \
41  ../lib/curl_multibyte.c \
42  ../lib/dynbuf.c \
43  ../lib/nonblock.c \
44  ../lib/strtoofft.c \
45  ../lib/timediff.c \
46  ../lib/version_win32.c \
47  ../lib/warnless.c
48
49CURLX_HFILES = \
50  ../lib/curl_ctype.h \
51  ../lib/curl_multibyte.h \
52  ../lib/curl_setup.h \
53  ../lib/dynbuf.h \
54  ../lib/nonblock.h \
55  ../lib/strtoofft.h \
56  ../lib/timediff.h \
57  ../lib/version_win32.h \
58  ../lib/warnless.h
59
60CURL_CFILES = \
61  slist_wc.c \
62  terminal.c \
63  tool_bname.c \
64  tool_cb_dbg.c \
65  tool_cb_hdr.c \
66  tool_cb_prg.c \
67  tool_cb_rea.c \
68  tool_cb_see.c \
69  tool_cb_soc.c \
70  tool_cb_wrt.c \
71  tool_cfgable.c \
72  tool_dirhie.c \
73  tool_doswin.c \
74  tool_easysrc.c \
75  tool_filetime.c \
76  tool_findfile.c \
77  tool_formparse.c \
78  tool_getparam.c \
79  tool_getpass.c \
80  tool_help.c \
81  tool_helpers.c \
82  tool_hugehelp.c \
83  tool_ipfs.c \
84  tool_libinfo.c \
85  tool_listhelp.c \
86  tool_main.c \
87  tool_msgs.c \
88  tool_operate.c \
89  tool_operhlp.c \
90  tool_paramhlp.c \
91  tool_parsecfg.c \
92  tool_progress.c \
93  tool_setopt.c \
94  tool_sleep.c \
95  tool_stderr.c \
96  tool_strdup.c \
97  tool_urlglob.c \
98  tool_util.c \
99  tool_vms.c \
100  tool_writeout.c \
101  tool_writeout_json.c \
102  tool_xattr.c \
103  var.c
104
105CURL_HFILES = \
106  slist_wc.h \
107  terminal.h \
108  tool_binmode.h \
109  tool_bname.h \
110  tool_cb_dbg.h \
111  tool_cb_hdr.h \
112  tool_cb_prg.h \
113  tool_cb_rea.h \
114  tool_cb_see.h \
115  tool_cb_soc.h \
116  tool_cb_wrt.h \
117  tool_cfgable.h \
118  tool_dirhie.h \
119  tool_doswin.h \
120  tool_easysrc.h \
121  tool_filetime.h \
122  tool_findfile.h \
123  tool_formparse.h \
124  tool_getparam.h \
125  tool_getpass.h \
126  tool_help.h \
127  tool_helpers.h \
128  tool_hugehelp.h \
129  tool_ipfs.h \
130  tool_libinfo.h \
131  tool_main.h \
132  tool_msgs.h \
133  tool_operate.h \
134  tool_operhlp.h \
135  tool_paramhlp.h \
136  tool_parsecfg.h \
137  tool_progress.h \
138  tool_sdecls.h \
139  tool_setopt.h \
140  tool_setup.h \
141  tool_sleep.h \
142  tool_stderr.h \
143  tool_strdup.h \
144  tool_urlglob.h \
145  tool_util.h \
146  tool_version.h \
147  tool_vms.h \
148  tool_writeout.h \
149  tool_writeout_json.h \
150  tool_xattr.h \
151  var.h
152
153CURL_RCFILES = curl.rc
154
155# curl_SOURCES is special and gets assigned in src/Makefile.am
156CURL_FILES = $(CURL_CFILES) $(CURLX_CFILES) $(CURL_HFILES)
157