1#*************************************************************************** 2# _ _ ____ _ 3# Project ___| | | | _ \| | 4# / __| | | | |_) | | 5# | (__| |_| | _ <| |___ 6# \___|\___/|_| \_\_____| 7# 8# Copyright (C) 2003 - 2007, Gisle Vanem <gvanem@yahoo.no>. 9# Copyright (C) 2003 - 2015, 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.haxx.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 32include ../packages/DOS/common.dj 33include Makefile.inc 34 35CSOURCES = $(CURL_CFILES) 36 37ifeq ($(USE_SSL),1) 38 EX_LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a 39endif 40 41ifeq ($(USE_ARES),1) 42 EX_LIBS += $(ARES_ROOT)/libcares.a 43endif 44 45ifeq ($(USE_ZLIB),1) 46 EX_LIBS += $(ZLIB_ROOT)/libz.a 47 CFLAGS += -DUSE_MANUAL 48endif 49 50ifeq ($(USE_IDNA),1) 51 EX_LIBS += $(LIBIDN_ROOT)/lib/dj_obj/libidn.a -liconv 52endif 53 54EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a 55 56CFLAGS += -DUSE_ENVIRONMENT 57 58PROGRAM = curl.exe 59OBJECTS += $(addprefix $(OBJ_DIR)/, $(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# 70tool_hugehelp.c: ../docs/MANUAL ../docs/curl.1 mkhelp.pl 71 groff -Tascii -man ../docs/curl.1 | \ 72 perl -w mkhelp.pl ../docs/MANUAL > $@ 73 74# clean generated files 75# 76genclean: 77 - $(DELETE) tool_hugehelp.c 78 79# clean object files and subdir 80# 81objclean: genclean 82 - $(DELETE) $(OBJ_DIR)$(DS)*.o 83 - $(RMDIR) $(OBJ_DIR) 84 85# clean without removing built program 86# 87clean: objclean 88 - $(DELETE) depend.dj 89 90# clean everything 91# 92realclean vclean: clean 93 - $(DELETE) $(PROGRAM) 94 95-include depend.dj 96 97