curl tool: reviewed code moved to tool_*.[ch] files
[platform/upstream/curl.git] / src / Makefile.inc
1 # ./src/Makefile.inc
2 # Using the backslash as line continuation character might be problematic
3 # with some make flavours, as Watcom's wmake showed us already. If we
4 # ever want to change this in a portable manner then we should consider
5 # this idea (posted to the libcurl list by Adam Kellas):
6 # CSRC1 = file1.c file2.c file3.c
7 # CSRC2 = file4.c file5.c file6.c
8 # CSOURCES = $(CSRC1) $(CSRC2)
9
10 # libcurl has sources that provide functions named curlx_* that aren't part of
11 # the official API, but we re-use the code here to avoid duplication.
12 CURLX_ONES = $(top_srcdir)/lib/strtoofft.c \
13         $(top_srcdir)/lib/strdup.c \
14         $(top_srcdir)/lib/rawstr.c \
15         $(top_srcdir)/lib/nonblock.c
16
17 CURL_CFILES = main.c hugehelp.c urlglob.c writeout.c writeenv.c \
18         getpass.c homedir.c curlutil.c xattr.c \
19         tool_bname.c tool_cfgable.c tool_convert.c tool_dirhie.c \
20         tool_doswin.c tool_mfiles.c tool_myfunc.c tool_vms.c
21
22 CURL_HFILES = hugehelp.h setup.h config-win32.h config-mac.h \
23         config-riscos.h urlglob.h version.h xattr.h \
24         writeout.h writeenv.h getpass.h homedir.h curlutil.h \
25         tool_bname.h tool_cfgable.h tool_convert.h tool_dirhie.h \
26         tool_doswin.h tool_mfiles.h tool_myfunc.h tool_vms.h
27
28 curl_SOURCES = $(CURL_CFILES) $(CURLX_ONES) $(CURL_HFILES)
29