1 #***************************************************************************
3 # Project ___| | | | _ \| |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
8 # Copyright (C) 2003 - 2007, Gisle Vanem <gvanem@yahoo.no>.
9 # Copyright (C) 2003 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
11 # This software is licensed as described in the file COPYING, which
12 # you should have received as part of this distribution. The terms
13 # are also available at https://curl.haxx.se/docs/copyright.html.
15 # You may opt to use, copy, modify, merge, publish, distribute and/or sell
16 # copies of the Software, and permit persons to whom the Software is
17 # furnished to do so, under the terms of the COPYING file.
19 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 # KIND, either express or implied.
22 #***************************************************************************
25 # Adapted for djgpp2 / Watt-32 / DOS
28 DEPEND_PREREQ = # tool_hugehelp.c
32 include ../packages/DOS/common.dj
35 CSOURCES = $(CURL_CFILES)
38 EX_LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a
42 EX_LIBS += $(ARES_ROOT)/libcares.a
46 EX_LIBS += $(ZLIB_ROOT)/libz.a
47 CFLAGS += -DUSE_MANUAL
51 EX_LIBS += $(LIBIDN_ROOT)/lib/dj_obj/libidn.a -liconv
54 EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a
57 OBJECTS += $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o))
59 all: $(OBJ_DIR) $(PROGRAM)
62 $(PROGRAM): $(OBJECTS) ../lib/libcurl.a
63 $(CC) -o $@ $^ $(LDFLAGS) $(EX_LIBS)
66 # groff 1.18+ requires "-P -c"
68 tool_hugehelp.c: ../docs/MANUAL ../docs/curl.1 mkhelp.pl
69 groff -Tascii -man ../docs/curl.1 | \
70 perl -w mkhelp.pl ../docs/MANUAL > $@
72 # clean generated files
75 - $(DELETE) tool_hugehelp.c
77 # clean object files and subdir
80 - $(DELETE) $(OBJ_DIR)$(DS)*.o
83 # clean without removing built program
90 realclean vclean: clean
91 - $(DELETE) $(PROGRAM)