aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/makefile.dj29
1 files changed, 21 insertions, 8 deletions
diff --git a/lib/makefile.dj b/lib/makefile.dj
index 93bb2a812..b8d324923 100644
--- a/lib/makefile.dj
+++ b/lib/makefile.dj
@@ -8,16 +8,14 @@ DEPEND_PREREQ = config.h
TOPDIR = ..
include ../packages/DOS/common.dj
-
-# Makefile.inc provides the CSOURCES and HHEADERS defines
include Makefile.inc
OBJECTS := $(patsubst %.c,$(OBJ_DIR)/%.o,$(strip $(CSOURCES)))
CURL_LIB = libcurl.a
-# NOTE: if ../include/curl/curlbuild.h is missing, you're probably building this
-# from a CVS checkout and then you need to run buildconf.bat first!
+# NOTE: if ../include/curl/curlbuild.h is missing, you're probably building
+# this from a CVS checkout and then you need to run buildconf.bat first.
all: $(OBJ_DIR) config.h $(CURL_LIB)
@@ -25,13 +23,28 @@ $(CURL_LIB): $(OBJECTS)
ar rs $@ $?
config.h: config.dos
- cp $^ $@
+ $(COPY) $^ $@
+
+# clean generated files
+#
+genclean:
+ - $(DELETE) config.h
-clean:
- - rm -f $(OBJECTS)
+# clean object files and subdir
+#
+objclean: genclean
+ - $(DELETE) $(OBJ_DIR)$(DS)*.o
+ - $(RMDIR) $(OBJ_DIR)
+# clean without removing built library
+#
+clean: objclean
+ - $(DELETE) depend.dj
+
+# clean everything
+#
realclean vclean: clean
- - rm -f config.h depend.dj $(CURL_LIB)
+ - $(DELETE) $(CURL_LIB)
-include depend.dj