From 169e94d68b82d7da6a4fc06c6ec2880e3e53196b Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 13 Jun 2009 18:11:17 +0000 Subject: improve usability with UNIX-like shells or a DOS command interpreters --- lib/makefile.dj | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3