1 #***************************************************************************
3 # Project ___| | | | _ \| |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
8 # Copyright (C) 2003 - 2008, Gisle Vanem <gvanem@yahoo.no>.
9 # Copyright (C) 2003 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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.
19 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 # KIND, either express or implied.
22 #***************************************************************************
25 # Adapted for djgpp2 / Watt-32 / DOS
28 DEPEND_PREREQ = curl_config.h
32 include ../packages/DOS/common.dj
35 SOURCES = $(sort $(CSOURCES))
36 OBJECTS = $(addprefix $(OBJ_DIR)/, $(notdir $(SOURCES:.c=.o)))
40 # NOTE: if ../include/curl/curlbuild.h is missing, you're probably building
41 # this from a git checkout and then you need to run buildconf.bat first.
43 all: $(OBJ_DIR) curl_config.h $(CURL_LIB)
45 $(CURL_LIB): $(OBJECTS)
48 curl_config.h: config-dos.h
51 # clean generated files
54 - $(DELETE) curl_config.h
56 # clean object files and subdir
59 - $(DELETE) $(OBJ_DIR)$(DS)*.o
62 # clean without removing built library
69 realclean vclean: clean
70 - $(DELETE) $(CURL_LIB)