Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 1 | # |
| 2 | # Adapted for djgpp2 / Watt-32 / DOS by |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 3 | # Gisle Vanem <gvanem@broadpark.no> |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 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 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 24 | curl_config.h: config-dos.h |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 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 | |