1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-17 23:15:08 -05:00
curl/src/makefile.dj

75 lines
1.3 KiB
Plaintext
Raw Normal View History

2003-12-19 03:03:48 -05:00
#
# Adapted for djgpp2 / Watt-32 / DOS by
2011-04-13 23:27:40 -04:00
# Gisle Vanem <gvanem@broadpark.no>
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
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)
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
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
CFLAGS += -DUSE_ENVIRONMENT
2004-03-29 07:29:25 -05:00
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
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"
#
tool_hugehelp.c: ../docs/MANUAL ../docs/curl.1 mkhelp.pl
2003-12-19 03:03:48 -05:00
groff -Tascii -man ../docs/curl.1 | \
perl -w mkhelp.pl ../docs/MANUAL > $@
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