2003-12-19 03:03:48 -05:00
|
|
|
#
|
2004-11-15 05:38:34 -05:00
|
|
|
# $Id$
|
|
|
|
#
|
2003-12-19 03:03:48 -05:00
|
|
|
# Adapted for djgpp2 / Watt-32 / DOS by
|
|
|
|
# Gisle Vanem <giva@bgnett.no>
|
|
|
|
#
|
|
|
|
|
|
|
|
DEPEND_PREREQ = config.h hugehelp.c
|
|
|
|
|
2004-11-15 05:41:58 -05:00
|
|
|
top_srcdir = ..
|
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
|
|
|
|
2007-02-27 10:44:25 -05:00
|
|
|
CSOURCES = $(CURL_SOURCES)
|
|
|
|
|
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
|
|
|
|
|
2004-11-15 05:38:34 -05:00
|
|
|
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
|
|
|
|
2004-06-29 14:43:56 -04:00
|
|
|
all: $(OBJ_DIR) config.h $(PROGRAM)
|
2004-12-17 07:43:02 -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
|
|
|
|
|
|
|
config.h:
|
2007-02-27 10:27:00 -05:00
|
|
|
@echo '#include "../lib/config.dos"' > $@
|
2003-12-19 03:03:48 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# groff 1.18+ requires "-P -c"
|
|
|
|
#
|
|
|
|
hugehelp.c: ../docs/MANUAL ../docs/curl.1 mkhelp.pl
|
|
|
|
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
|
|
|
|
|
|
|
clean:
|
2007-02-27 10:27:00 -05:00
|
|
|
- rm -f $(OBJECTS) config.h
|
2003-12-19 03:03:48 -05:00
|
|
|
|
|
|
|
realclean vclean: clean
|
2007-02-27 10:27:00 -05:00
|
|
|
- rm -f $(PROGRAM) hugehelp.c depend.dj
|
|
|
|
|
|
|
|
-include depend.dj
|
|
|
|
|