diff options
author | Yang Tse <yangsita@gmail.com> | 2009-06-13 18:11:17 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-06-13 18:11:17 +0000 |
commit | 169e94d68b82d7da6a4fc06c6ec2880e3e53196b (patch) | |
tree | 8ad33248bd8f7e5e4f5f8443562891b5fc047130 /lib | |
parent | 0cc81840571accc48781c47b2c84e32fc5445846 (diff) |
improve usability with UNIX-like shells or a DOS command interpreters
Diffstat (limited to 'lib')
-rw-r--r-- | lib/makefile.dj | 29 |
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 |