2 # $Id: makefile.dj,v 1.1.1.1 2008-09-23 16:32:06 hoffman Exp $
4 # Adapted for djgpp2 / Watt-32 / DOS by
5 # Gisle Vanem <giva@bgnett.no>
8 DEPEND_PREREQ = config.h hugehelp.c
13 include ../packages/DOS/common.dj
16 CSOURCES = $(CURL_SOURCES)
19 EX_LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a
23 EX_LIBS += $(ARES_ROOT)/libcares.a
27 EX_LIBS += $(ZLIB_ROOT)/libz.a
28 CFLAGS += -DUSE_MANUAL
32 EX_LIBS += $(LIBIDN_ROOT)/lib/dj_obj/libidn.a -liconv
35 EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a
37 CFLAGS += -DUSE_ENVIRONMENT
40 OBJECTS += $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o))
42 all: $(OBJ_DIR) config.h $(PROGRAM)
45 $(PROGRAM): $(OBJECTS) ../lib/libcurl.a
46 $(CC) -o $@ $^ $(LDFLAGS) $(EX_LIBS)
49 @echo '#include "../lib/config.dos"' > $@
52 # groff 1.18+ requires "-P -c"
54 hugehelp.c: ../docs/MANUAL ../docs/curl.1 mkhelp.pl
55 groff -Tascii -man ../docs/curl.1 | \
56 perl -w mkhelp.pl ../docs/MANUAL > $@
59 - rm -f $(OBJECTS) config.h
61 realclean vclean: clean
62 - rm -f $(PROGRAM) hugehelp.c depend.dj