1 #***************************************************************************
3 # Project ___| | | | _ \| |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
8 # Copyright (C) 2005 - 2008, Gisle Vanem <gvanem@yahoo.no>.
9 # Copyright (C) 2005 - 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 # Watcom / OpenWatcom / Win32 makefile for curl.
30 !if $(__VERSION__) < 1280
31 !message !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32 !message ! This Open Watcom version is too old and is no longer supported !
33 !message ! Please download latest version from www.openwatcom.org !
34 !message !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
35 !error Unsupported version of Open Watcom
39 !error WATCOM environment variable not set!
42 # In order to process Makefile.inc wmake must be called with -u switch!
44 !error You MUST call wmake with the -u switch!
61 ! loaddll wcc386 wccd386
62 ! loaddll wpp386 wppd386
64 ! loaddll wlink wlinkd
74 !if $(__VERSION__) > 1290
79 RD = rmdir /q /s 2>NUL
82 SYS_INCL = -I"$(%watcom)/h/nt" -I"$(%watcom)/h"
84 CFLAGS = -3r -mf -hc -zff -zgf -zq -zm -s -fr=con -w2 -fpi -oilrtfm &
85 -wcd=201 -bt=nt -bc -d+ -dWIN32 -dHAVE_STRTOLL &
86 -I"../include" -I"../lib" $(SYS_INCL)
89 DEBUG = -dDEBUG=1 -dDEBUGBUILD
90 CFLAGS += -d3 $(DEBUG)
96 CFLAGS += -d_WIN32_WINNT=0x0501 -dENABLE_IPV6
100 CFLAGS += -wcd=138 -dUSE_OPENSSL -dUSE_OPENSSL -I"$(OPENSSL_ROOT)/inc32"
104 CFLAGS += -DCURL_STATICLIB
113 ZLIB_ROOT = $(%zlib_root)
115 ZLIB_ROOT = ../../zlib-1.2.8
119 LIBSSH2_ROOT = $(%libssh2_root)
121 LIBSSH2_ROOT = ../../libssh2-1.5.0
125 LIBRTMP_ROOT = $(%librtmp_root)
127 LIBRTMP_ROOT = ../../rtmpdump-2.3
131 OPENSSL_ROOT = $(%openssl_root)
133 OPENSSL_ROOT = ../../openssl-1.0.2a
137 ARES_ROOT = $(%ares_root)
142 OBJ_DIR = WC_Win32.obj
143 LINK_ARG = $(OBJ_DIR)/wlink.arg
145 !include Makefile.inc
147 OBJS1 = $(OBJ_DIR)/$(CURL_CFILES)
149 OBJS1 += $(CURLX_CFILES:../lib/=)
151 OBJS2 = $(OBJS1: = $(OBJ_DIR)/)
152 OBJS = $(OBJS2:.c=.obj)
154 RESOURCE = $(OBJ_DIR)/curl.res
158 all: tool_hugehelp.c $(DIRS) $(TARGETS) .SYMBOLIC
159 @echo Welcome to curl
163 -rm -f $(RESOURCE) $(LINK_ARG)
165 vclean distclean: clean .SYMBOLIC
167 -rm -f curl.exe curl.sym tool_hugehelp.c
169 tool_hugehelp.c: tool_hugehelp.c.cvs
172 tool_hugehelp.c.cvs: .EXISTSONLY
173 $(CP) tool_hugehelp.c $^@
178 curl.exe: $(OBJS) $(RESOURCE)
180 @%append $(LINK_ARG) system nt
182 @%append $(LINK_ARG) debug all
183 @%append $(LINK_ARG) option symfile
185 @%append $(LINK_ARG) option quiet, caseexact, eliminate
186 @%append $(LINK_ARG) option map=$(OBJ_DIR)/$^&.map
187 @%append $(LINK_ARG) option res=$(RESOURCE)
188 @%append $(LINK_ARG) file { $(OBJS) }
190 @%append $(LINK_ARG) library ../lib/$(LIBNAME)_imp.lib
192 @%append $(LINK_ARG) library ../lib/$(LIBNAME).lib
193 @%append $(LINK_ARG) library wldap32.lib
195 @%append $(LINK_ARG) library '$(ZLIB_ROOT)/zlib.lib'
198 @%append $(LINK_ARG) library '$(LIBRTMP_ROOT)/librtmp/librtmp.lib'
199 @%append $(LINK_ARG) library winmm.lib
202 @%append $(LINK_ARG) library '$(LIBSSH2_ROOT)/win32/libssh2.lib'
205 @%append $(LINK_ARG) library '$(OPENSSL_ROOT)/out32/libeay32.lib'
206 @%append $(LINK_ARG) library '$(OPENSSL_ROOT)/out32/ssleay32.lib'
209 @%append $(LINK_ARG) library '$(ARES_ROOT)/cares.lib'
212 ! if $(__VERSION__) > 1290
213 @%append $(LINK_ARG) library normaliz.lib
215 @%append $(LINK_ARG) import '_IdnToAscii@20' 'NORMALIZ.DLL'.'IdnToAscii'
216 @%append $(LINK_ARG) import '_IdnToUnicode@20' 'NORMALIZ.DLL'.'IdnToUnicode'
221 @%append $(LINK_ARG) library '$(%watt_root)/lib/wattcpw_imp.lib'
223 @%append $(LINK_ARG) library ws2_32.lib
225 $(LD) name $^@ @$(LINK_ARG)
228 $(RC) $(DEBUG) -q -r -zm -bt=nt -I"../include" $(SYS_INCL) $[@ -fo=$^@
230 # suffix search path - vpath-like hack
234 $(CC) $(CFLAGS) $[@ -fo=$^@