Alex Deymo | 8f1a214 | 2016-06-28 14:49:26 -0700 | [diff] [blame] | 1 | #*************************************************************************** |
| 2 | # _ _ ____ _ |
| 3 | # Project ___| | | | _ \| | |
| 4 | # / __| | | | |_) | | |
| 5 | # | (__| |_| | _ <| |___ |
| 6 | # \___|\___/|_| \_\_____| |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 7 | # |
Alex Deymo | 8f1a214 | 2016-06-28 14:49:26 -0700 | [diff] [blame] | 8 | # Copyright (C) 2003 - 2008, Gisle Vanem <gvanem@yahoo.no>. |
Elliott Hughes | 82be86d | 2017-09-20 17:00:17 -0700 | [diff] [blame] | 9 | # Copyright (C) 2003 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. |
Alex Deymo | 8f1a214 | 2016-06-28 14:49:26 -0700 | [diff] [blame] | 10 | # |
| 11 | # This software is licensed as described in the file COPYING, which |
| 12 | # you should have received as part of this distribution. The terms |
| 13 | # are also available at https://curl.haxx.se/docs/copyright.html. |
| 14 | # |
| 15 | # You may opt to use, copy, modify, merge, publish, distribute and/or sell |
| 16 | # copies of the Software, and permit persons to whom the Software is |
| 17 | # furnished to do so, under the terms of the COPYING file. |
| 18 | # |
| 19 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 20 | # KIND, either express or implied. |
| 21 | # |
| 22 | #*************************************************************************** |
| 23 | |
| 24 | # |
| 25 | # Adapted for djgpp2 / Watt-32 / DOS |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 26 | # |
| 27 | |
| 28 | DEPEND_PREREQ = curl_config.h |
Elliott Hughes | 82be86d | 2017-09-20 17:00:17 -0700 | [diff] [blame] | 29 | VPATH = vtls vauth |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 30 | TOPDIR = .. |
| 31 | |
| 32 | include ../packages/DOS/common.dj |
| 33 | include Makefile.inc |
| 34 | |
Elliott Hughes | 82be86d | 2017-09-20 17:00:17 -0700 | [diff] [blame] | 35 | CFLAGS += -DBUILDING_LIBCURL |
| 36 | |
Alex Deymo | 8f1a214 | 2016-06-28 14:49:26 -0700 | [diff] [blame] | 37 | SOURCES = $(sort $(CSOURCES)) |
| 38 | OBJECTS = $(addprefix $(OBJ_DIR)/, $(notdir $(SOURCES:.c=.o))) |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 39 | |
| 40 | CURL_LIB = libcurl.a |
| 41 | |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 42 | all: $(OBJ_DIR) curl_config.h $(CURL_LIB) |
| 43 | |
| 44 | $(CURL_LIB): $(OBJECTS) |
| 45 | ar rs $@ $? |
| 46 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 47 | curl_config.h: config-dos.h |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 48 | $(COPY) $^ $@ |
| 49 | |
| 50 | # clean generated files |
| 51 | # |
| 52 | genclean: |
| 53 | - $(DELETE) curl_config.h |
| 54 | |
| 55 | # clean object files and subdir |
| 56 | # |
| 57 | objclean: genclean |
| 58 | - $(DELETE) $(OBJ_DIR)$(DS)*.o |
| 59 | - $(RMDIR) $(OBJ_DIR) |
| 60 | |
| 61 | # clean without removing built library |
| 62 | # |
| 63 | clean: objclean |
| 64 | - $(DELETE) depend.dj |
| 65 | |
| 66 | # clean everything |
| 67 | # |
| 68 | realclean vclean: clean |
| 69 | - $(DELETE) $(CURL_LIB) |
| 70 | |
| 71 | -include depend.dj |
| 72 | |