mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 14:05:03 -05:00
919c97fa65
Configuration files such as curl_config.h and all config-*.h no longer exist nor are generated/copied into 'src' directory, now these only exist in 'lib' directory from where curl tool sources uses them. Additionally old src/setup.h has been refactored into src/tool_setup.h which now pulls lib/setup.h The possibility of a makefile needing an include path adjustment exists.
76 lines
1.3 KiB
Plaintext
76 lines
1.3 KiB
Plaintext
#
|
|
# Adapted for djgpp2 / Watt-32 / DOS by
|
|
# Gisle Vanem <gvanem@broadpark.no>
|
|
#
|
|
|
|
DEPEND_PREREQ = # hugehelp.c
|
|
|
|
top_srcdir = ..
|
|
TOPDIR = ..
|
|
|
|
include ../packages/DOS/common.dj
|
|
include Makefile.inc
|
|
|
|
CSOURCES = $(CURL_CFILES)
|
|
|
|
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
|
|
|
|
ifeq ($(USE_ZLIB),1)
|
|
EX_LIBS += $(ZLIB_ROOT)/libz.a
|
|
CFLAGS += -DUSE_MANUAL
|
|
endif
|
|
|
|
ifeq ($(USE_IDNA),1)
|
|
EX_LIBS += $(LIBIDN_ROOT)/lib/dj_obj/libidn.a -liconv
|
|
endif
|
|
|
|
EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a
|
|
|
|
CFLAGS += -DUSE_ENVIRONMENT
|
|
|
|
PROGRAM = curl.exe
|
|
OBJECTS += $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o))
|
|
|
|
all: $(OBJ_DIR) $(PROGRAM)
|
|
@echo Welcome to cURL
|
|
|
|
$(PROGRAM): $(OBJECTS) ../lib/libcurl.a
|
|
$(CC) -o $@ $^ $(LDFLAGS) $(EX_LIBS)
|
|
|
|
#
|
|
# groff 1.18+ requires "-P -c"
|
|
#
|
|
hugehelp.c: ../docs/MANUAL ../docs/curl.1 mkhelp.pl
|
|
groff -Tascii -man ../docs/curl.1 | \
|
|
perl -w mkhelp.pl ../docs/MANUAL > $@
|
|
|
|
# clean generated files
|
|
#
|
|
genclean:
|
|
- $(DELETE) 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
|
|
|
|
# clean everything
|
|
#
|
|
realclean vclean: clean
|
|
- $(DELETE) $(PROGRAM)
|
|
|
|
-include depend.dj
|
|
|