1#
2#  Adapted for djgpp2 / Watt-32 / DOS by
3#  Gisle Vanem <gvanem@broadpark.no>
4#
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
24curl_config.h: config-dos.h
25	$(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
50