• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#  Adapted for djgpp2 / Watt-32 / DOS by
3#  Gisle Vanem <gvanem@broadpark.no>
4#
5
6DEPEND_PREREQ = # tool_hugehelp.c
7
8TOPDIR = ..
9
10include ../packages/DOS/common.dj
11include Makefile.inc
12
13CSOURCES = $(CURL_CFILES)
14
15ifeq ($(USE_SSL),1)
16  EX_LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a
17endif
18
19ifeq ($(USE_ARES),1)
20  EX_LIBS += $(ARES_ROOT)/libcares.a
21endif
22
23ifeq ($(USE_ZLIB),1)
24  EX_LIBS += $(ZLIB_ROOT)/libz.a
25  CFLAGS  += -DUSE_MANUAL
26endif
27
28ifeq ($(USE_IDNA),1)
29  EX_LIBS += $(LIBIDN_ROOT)/lib/dj_obj/libidn.a -liconv
30endif
31
32EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a
33
34CFLAGS += -DUSE_ENVIRONMENT
35
36PROGRAM  = curl.exe
37OBJECTS += $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o))
38
39all: $(OBJ_DIR) $(PROGRAM)
40	@echo Welcome to cURL
41
42$(PROGRAM): $(OBJECTS) ../lib/libcurl.a
43	$(CC) -o $@ $^ $(LDFLAGS) $(EX_LIBS)
44
45#
46# groff 1.18+ requires "-P -c"
47#
48tool_hugehelp.c: ../docs/MANUAL ../docs/curl.1 mkhelp.pl
49	groff -Tascii -man ../docs/curl.1 | \
50	perl -w mkhelp.pl ../docs/MANUAL > $@
51
52# clean generated files
53#
54genclean:
55	- $(DELETE) tool_hugehelp.c
56
57# clean object files and subdir
58#
59objclean: genclean
60	- $(DELETE) $(OBJ_DIR)$(DS)*.o
61	- $(RMDIR) $(OBJ_DIR)
62
63# clean without removing built program
64#
65clean: objclean
66	- $(DELETE) depend.dj
67
68# clean everything
69#
70realclean vclean: clean
71	- $(DELETE) $(PROGRAM)
72
73-include depend.dj
74
75