2015-08-30 06:51:55 -04:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
2003-12-19 03:03:48 -05:00
|
|
|
#
|
2015-10-20 07:33:01 -04:00
|
|
|
# Copyright (C) 2003 - 2007, Gisle Vanem <gvanem@yahoo.no>.
|
2020-03-23 09:44:29 -04:00
|
|
|
# Copyright (C) 2003 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2015-08-30 06:51:55 -04:00
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2020-11-04 08:02:01 -05:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2015-08-30 06:51:55 -04:00
|
|
|
#
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
|
|
|
#***************************************************************************
|
|
|
|
|
|
|
|
#
|
|
|
|
# Adapted for djgpp2 / Watt-32 / DOS
|
2003-12-19 03:03:48 -05:00
|
|
|
#
|
|
|
|
|
2012-12-26 17:30:54 -05:00
|
|
|
DEPEND_PREREQ = # tool_hugehelp.c
|
2003-12-19 03:03:48 -05:00
|
|
|
|
2007-02-27 10:27:00 -05:00
|
|
|
TOPDIR = ..
|
2004-11-15 05:41:58 -05:00
|
|
|
|
2003-12-19 03:03:48 -05:00
|
|
|
include ../packages/DOS/common.dj
|
2004-11-15 05:38:34 -05:00
|
|
|
include Makefile.inc
|
2003-12-19 03:03:48 -05:00
|
|
|
|
2010-08-02 06:24:54 -04:00
|
|
|
CSOURCES = $(CURL_CFILES)
|
2007-02-27 10:44:25 -05:00
|
|
|
|
2003-12-19 03:03:48 -05:00
|
|
|
ifeq ($(USE_SSL),1)
|
|
|
|
EX_LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a
|
|
|
|
endif
|
|
|
|
|
2004-11-15 05:38:34 -05:00
|
|
|
ifeq ($(USE_ARES),1)
|
|
|
|
EX_LIBS += $(ARES_ROOT)/libcares.a
|
|
|
|
endif
|
|
|
|
|
2003-12-19 03:03:48 -05:00
|
|
|
ifeq ($(USE_ZLIB),1)
|
|
|
|
EX_LIBS += $(ZLIB_ROOT)/libz.a
|
2004-11-15 05:38:34 -05:00
|
|
|
CFLAGS += -DUSE_MANUAL
|
2003-12-19 03:03:48 -05:00
|
|
|
endif
|
|
|
|
|
2004-12-17 07:43:02 -05:00
|
|
|
ifeq ($(USE_IDNA),1)
|
|
|
|
EX_LIBS += $(LIBIDN_ROOT)/lib/dj_obj/libidn.a -liconv
|
|
|
|
endif
|
|
|
|
|
2003-12-19 03:03:48 -05:00
|
|
|
EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a
|
|
|
|
|
2007-02-27 10:32:29 -05:00
|
|
|
PROGRAM = curl.exe
|
|
|
|
OBJECTS += $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o))
|
2003-12-19 03:03:48 -05:00
|
|
|
|
2012-04-06 17:35:15 -04:00
|
|
|
all: $(OBJ_DIR) $(PROGRAM)
|
2016-11-07 04:36:23 -05:00
|
|
|
@echo Welcome to curl
|
2003-12-19 03:03:48 -05:00
|
|
|
|
|
|
|
$(PROGRAM): $(OBJECTS) ../lib/libcurl.a
|
2007-02-27 10:27:00 -05:00
|
|
|
$(CC) -o $@ $^ $(LDFLAGS) $(EX_LIBS)
|
2003-12-19 03:03:48 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# groff 1.18+ requires "-P -c"
|
|
|
|
#
|
2012-12-26 17:30:54 -05:00
|
|
|
tool_hugehelp.c: ../docs/MANUAL ../docs/curl.1 mkhelp.pl
|
2003-12-19 03:03:48 -05:00
|
|
|
groff -Tascii -man ../docs/curl.1 | \
|
2007-02-27 10:27:00 -05:00
|
|
|
perl -w mkhelp.pl ../docs/MANUAL > $@
|
2003-12-19 03:03:48 -05:00
|
|
|
|
2009-06-13 14:11:17 -04:00
|
|
|
# clean generated files
|
|
|
|
#
|
|
|
|
genclean:
|
2012-12-26 17:30:54 -05:00
|
|
|
- $(DELETE) tool_hugehelp.c
|
2009-06-13 14:11:17 -04:00
|
|
|
|
|
|
|
# clean object files and subdir
|
|
|
|
#
|
|
|
|
objclean: genclean
|
|
|
|
- $(DELETE) $(OBJ_DIR)$(DS)*.o
|
|
|
|
- $(RMDIR) $(OBJ_DIR)
|
|
|
|
|
|
|
|
# clean without removing built program
|
|
|
|
#
|
|
|
|
clean: objclean
|
|
|
|
- $(DELETE) depend.dj
|
2003-12-19 03:03:48 -05:00
|
|
|
|
2009-06-13 14:11:17 -04:00
|
|
|
# clean everything
|
|
|
|
#
|
2003-12-19 03:03:48 -05:00
|
|
|
realclean vclean: clean
|
2009-06-13 14:11:17 -04:00
|
|
|
- $(DELETE) $(PROGRAM)
|
2007-02-27 10:27:00 -05:00
|
|
|
|
|
|
|
-include depend.dj
|