• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#***************************************************************************
2#                                  _   _ ____  _
3#  Project                     ___| | | |  _ \| |
4#                             / __| | | | |_) | |
5#                            | (__| |_| |  _ <| |___
6#                             \___|\___/|_| \_\_____|
7#
8# Copyright (C) 2003 - 2021, Gisle Vanem <gvanem@yahoo.no>.
9# Copyright (C) 2003 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
10#
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.se/docs/copyright.html.
14#
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.
18#
19# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20# KIND, either express or implied.
21#
22#***************************************************************************
23
24#
25#  Adapted for djgpp2 / Watt-32 / DOS
26#
27
28DEPEND_PREREQ = # tool_hugehelp.c
29
30TOPDIR = ..
31
32vpath %.c ../lib
33
34include ../packages/DOS/common.dj
35include Makefile.inc
36
37CSOURCES = $(CURL_CFILES) $(CURLX_CFILES)
38
39ifeq ($(USE_OPENSSL),1)
40  EX_LIBS += $(OPENSSL_LIBS)
41endif
42
43ifeq ($(USE_ARES),1)
44  EX_LIBS += $(ARES_ROOT)/libcares.a
45endif
46
47ifeq ($(USE_ZLIB),1)
48  EX_LIBS += $(ZLIB_ROOT)/libz.a
49  CFLAGS  += -DUSE_MANUAL
50endif
51
52ifeq ($(USE_IDNA),1)
53  EX_LIBS += $(LIBIDN_ROOT)/lib/dj_obj/libidn.a -liconv
54endif
55
56EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a
57
58PROGRAM = curl.exe
59OBJECTS = $(addprefix $(OBJ_DIR)/, $(notdir $(CSOURCES:.c=.o)))
60
61all: $(OBJ_DIR) $(PROGRAM)
62	@echo Welcome to curl
63
64$(PROGRAM): $(OBJECTS) ../lib/libcurl.a
65	$(CC) -o $@ $^ $(LDFLAGS) $(EX_LIBS)
66
67#
68# groff 1.18+ requires "-P -c"
69# If 'USE_ZLIB = 1', create a compressed help-file.
70#
71ifeq ($(USE_ZLIB),1)
72  COMPRESS_OPT = -c
73endif
74
75tool_hugehelp.c: ../docs/curl.1 mkhelp.pl Makefile.dj
76	groff -Tascii -man $< | perl -w mkhelp.pl $(COMPRESS_OPT) $< > $@
77
78# clean generated files
79#
80genclean:
81	- $(DELETE) tool_hugehelp.c
82
83# clean object files and subdir
84#
85objclean: genclean
86	- $(DELETE) $(OBJ_DIR)$(DS)*.o
87	- $(RMDIR) $(OBJ_DIR)
88
89# clean without removing built program
90#
91clean: objclean
92	- $(DELETE) depend.dj
93
94# clean everything
95#
96realclean vclean: clean
97	- $(DELETE) $(PROGRAM)
98
99-include depend.dj
100