• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#***************************************************************************
2#                                  _   _ ____  _
3#  Project                     ___| | | |  _ \| |
4#                             / __| | | | |_) | |
5#                            | (__| |_| |  _ <| |___
6#                             \___|\___/|_| \_\_____|
7#
8# Copyright (C) 2003 - 2008, Gisle Vanem <gvanem@yahoo.no>.
9# Copyright (C) 2003 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
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
26#
27
28DEPEND_PREREQ = curl_config.h
29VPATH  = vtls
30TOPDIR = ..
31
32include ../packages/DOS/common.dj
33include Makefile.inc
34
35SOURCES = $(sort $(CSOURCES))
36OBJECTS = $(addprefix $(OBJ_DIR)/, $(notdir $(SOURCES:.c=.o)))
37
38CURL_LIB = libcurl.a
39
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.
42
43all: $(OBJ_DIR) curl_config.h $(CURL_LIB)
44
45$(CURL_LIB): $(OBJECTS)
46	ar rs $@ $?
47
48curl_config.h: config-dos.h
49	$(COPY) $^ $@
50
51# clean generated files
52#
53genclean:
54	- $(DELETE) curl_config.h
55
56# clean object files and subdir
57#
58objclean: genclean
59	- $(DELETE) $(OBJ_DIR)$(DS)*.o
60	- $(RMDIR) $(OBJ_DIR)
61
62# clean without removing built library
63#
64clean: objclean
65	- $(DELETE) depend.dj
66
67# clean everything
68#
69realclean vclean: clean
70	- $(DELETE) $(CURL_LIB)
71
72-include depend.dj
73
74