1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 04:25:08 -05:00
curl/src/makefile.dj

100 lines
2.4 KiB
Plaintext
Raw Normal View History

#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
2003-12-19 03:03:48 -05:00
#
# Copyright (C) 2003 - 2021, Gisle Vanem <gvanem@yahoo.no>.
# Copyright (C) 2003 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# 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.
#
# 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
#
DEPEND_PREREQ = # tool_hugehelp.c
2003-12-19 03:03:48 -05:00
TOPDIR = ..
2004-11-15 05:41:58 -05:00
vpath %.c ../lib
2003-12-19 03:03:48 -05:00
include ../packages/DOS/common.dj
include Makefile.inc
2003-12-19 03:03:48 -05:00
CSOURCES = $(CURL_CFILES) $(CURLX_CFILES)
2007-02-27 10:44:25 -05:00
ifeq ($(USE_OPENSSL),1)
EX_LIBS += $(OPENSSL_LIBS)
2003-12-19 03:03:48 -05:00
endif
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
CFLAGS += -DUSE_MANUAL
2003-12-19 03:03:48 -05:00
endif
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
PROGRAM = curl.exe
OBJECTS = $(addprefix $(OBJ_DIR)/, $(notdir $(CSOURCES:.c=.o)))
2003-12-19 03:03:48 -05:00
all: $(OBJ_DIR) $(PROGRAM)
@echo Welcome to curl
2003-12-19 03:03:48 -05:00
$(PROGRAM): $(OBJECTS) ../lib/libcurl.a
$(CC) -o $@ $^ $(LDFLAGS) $(EX_LIBS)
2003-12-19 03:03:48 -05:00
#
# groff 1.18+ requires "-P -c"
# If 'USE_ZLIB = 1', create a compressed help-file.
2003-12-19 03:03:48 -05:00
#
ifeq ($(USE_ZLIB),1)
COMPRESS_OPT = -c
endif
tool_hugehelp.c: ../docs/curl.1 mkhelp.pl Makefile.dj
groff -Tascii -man $< | perl -w mkhelp.pl $(COMPRESS_OPT) $< > $@
2003-12-19 03:03:48 -05:00
# clean generated files
#
genclean:
- $(DELETE) tool_hugehelp.c
# 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
# clean everything
#
2003-12-19 03:03:48 -05:00
realclean vclean: clean
- $(DELETE) $(PROGRAM)
-include depend.dj