7b2ca86bcff8dae7613f69843670e6ac4602287e
[platform/upstream/curl.git] / lib / makefile.dj
1 #
2 #  Adapted for djgpp2 / Watt-32 / DOS by
3 #  Gisle Vanem <gvanem@broadpark.no>
4 #
5
6 DEPEND_PREREQ = curl_config.h
7 TOPDIR = ..
8
9 include ../packages/DOS/common.dj
10 include Makefile.inc
11
12 OBJECTS := $(patsubst %.c,$(OBJ_DIR)/%.o,$(strip $(CSOURCES)))
13
14 CURL_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
19 all: $(OBJ_DIR) curl_config.h $(CURL_LIB)
20
21 $(CURL_LIB): $(OBJECTS)
22         ar rs $@ $?
23
24 curl_config.h: config-dos.h
25         $(COPY) $^ $@
26
27 # clean generated files
28 #
29 genclean:
30         - $(DELETE) curl_config.h
31
32 # clean object files and subdir
33 #
34 objclean: genclean
35         - $(DELETE) $(OBJ_DIR)$(DS)*.o
36         - $(RMDIR) $(OBJ_DIR)
37
38 # clean without removing built library
39 #
40 clean: objclean
41         - $(DELETE) depend.dj
42
43 # clean everything
44 #
45 realclean vclean: clean
46         - $(DELETE) $(CURL_LIB)
47
48 -include depend.dj
49