blob: 7b2ca86bcff8dae7613f69843670e6ac4602287e [file] [log] [blame]
Lucas Eckels9bd90e62012-08-06 15:07:02 -07001#
2# Adapted for djgpp2 / Watt-32 / DOS by
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -07003# Gisle Vanem <gvanem@broadpark.no>
Lucas Eckels9bd90e62012-08-06 15:07:02 -07004#
5
6DEPEND_PREREQ = curl_config.h
7TOPDIR = ..
8
9include ../packages/DOS/common.dj
10include Makefile.inc
11
12OBJECTS := $(patsubst %.c,$(OBJ_DIR)/%.o,$(strip $(CSOURCES)))
13
14CURL_LIB = libcurl.a
15
16# NOTE: if ../include/curl/curlbuild.h is missing, you're probably building
17# this from a git checkout and then you need to run buildconf.bat first.
18
19all: $(OBJ_DIR) curl_config.h $(CURL_LIB)
20
21$(CURL_LIB): $(OBJECTS)
22 ar rs $@ $?
23
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070024curl_config.h: config-dos.h
Lucas Eckels9bd90e62012-08-06 15:07:02 -070025 $(COPY) $^ $@
26
27# clean generated files
28#
29genclean:
30 - $(DELETE) curl_config.h
31
32# clean object files and subdir
33#
34objclean: genclean
35 - $(DELETE) $(OBJ_DIR)$(DS)*.o
36 - $(RMDIR) $(OBJ_DIR)
37
38# clean without removing built library
39#
40clean: objclean
41 - $(DELETE) depend.dj
42
43# clean everything
44#
45realclean vclean: clean
46 - $(DELETE) $(CURL_LIB)
47
48-include depend.dj
49