2 # Watcom / OpenWatcom / Win32 makefile for cURL.
3 # G. Vanem <gvanem@broadpark.no>
5 # $Id: Makefile.Watcom,v 1.1.1.1 2008-09-23 16:32:06 hoffman Exp $
9 CFLAGS = -3r -mf -d3 -hc -zff -zgf -zq -zm -s -fr=con -w2 -fpi -oilrtfm &
10 -bt=nt -d+ -dWIN32 -dHAVE_STRTOLL -dCURLDEBUG -dENABLE_IPV6 &
11 -dHAVE_WINSOCK2_H -I..\include -I..\lib
13 OBJ_DIR = WC_Win32.obj
15 OBJS = $(OBJ_DIR)\getpass.obj $(OBJ_DIR)\homedir.obj $(OBJ_DIR)\hugehelp.obj &
16 $(OBJ_DIR)\main.obj $(OBJ_DIR)\urlglob.obj $(OBJ_DIR)\writeenv.obj &
17 $(OBJ_DIR)\writeout.obj $(OBJ_DIR)\curlutil.obj
19 RESOURCE = $(OBJ_DIR)\curl.res
21 all: hugehelp.c $(OBJ_DIR) curl.exe .SYMBOLIC
24 hugehelp.c: hugehelp.c.cvs
25 copy hugehelp.c.cvs hugehelp.c
30 curl.exe: $(OBJS) $(RESOURCE)
31 wlink name $@ system nt file { $(OBJS) } &
32 option quiet, map, caseexact, eliminate, res=$(RESOURCE) &
33 libpath $(%watcom)\lib386;$(%watcom)\lib386\nt &
34 library ..\lib\libcurl_wc_imp.lib, clib3r.lib, ws2_32.lib
37 - rm -f $(OBJS) $(RESOURCE)
39 vclean realclean: clean .SYMBOLIC
40 - rm -f curl.exe curl.map hugehelp.c
44 wrc -dCURLDEBUG=1 -q -r -zm -I..\include -fo=$@ curl.rc
48 $(CC) $[@ $(CFLAGS) -fo=$@
51 # Dependencies based on "gcc -MM .."
53 $(OBJ_DIR)\getpass.obj: getpass.c setup.h config-win32.h ..\lib\setup_once.h getpass.h &
54 ..\lib\memdebug.h ..\lib\setup.h ..\lib\config-win32.h &
55 ..\include\curl\curlbuild.h ..\include\curl\curlrules.h &
56 ..\include\curl\curl.h ..\include\curl\curlver.h &
57 ..\include\curl\curlrules.h ..\include\curl\easy.h &
58 ..\include\curl\multi.h ..\include\curl\curl.h
60 $(OBJ_DIR)\homedir.obj: homedir.c setup.h config-win32.h ..\lib\setup_once.h homedir.h &
61 ..\lib\memdebug.h ..\lib\setup.h ..\lib\config-win32.h &
62 ..\include\curl\curlbuild.h ..\include\curl\curlrules.h &
63 ..\include\curl\curl.h ..\include\curl\curlver.h &
64 ..\include\curl\curlrules.h ..\include\curl\easy.h &
65 ..\include\curl\multi.h ..\include\curl\curl.h
67 $(OBJ_DIR)\hugehelp.obj: hugehelp.c
69 $(OBJ_DIR)\main.obj: main.c setup.h config-win32.h ..\lib\setup_once.h &
70 ..\include\curl\curl.h ..\include\curl\curlver.h &
71 ..\include\curl\curlbuild.h ..\include\curl\curlrules.h &
72 ..\include\curl\easy.h ..\include\curl\multi.h ..\include\curl\curl.h &
73 urlglob.h writeout.h getpass.h homedir.h curlutil.h hugehelp.h &
74 version.h ..\include\curl\curlver.h ..\lib\curlx.h &
75 ..\include\curl\mprintf.h ..\lib\strequal.h ..\lib\strtoofft.h &
76 ..\lib\setup.h ..\lib\config-win32.h ..\include\curl\curlbuild.h &
77 ..\include\curl\curlrules.h ..\lib\timeval.h ..\lib\memdebug.h
79 $(OBJ_DIR)\urlglob.obj: urlglob.c setup.h config-win32.h ..\lib\setup_once.h &
80 ..\include\curl\curl.h ..\include\curl\curlver.h &
81 ..\include\curl\curlbuild.h ..\include\curl\curlrules.h &
82 ..\include\curl\easy.h ..\include\curl\multi.h ..\include\curl\curl.h &
83 ..\include\curl\mprintf.h urlglob.h ..\lib\memdebug.h ..\lib\setup.h &
84 ..\lib\config-win32.h ..\include\curl\curlbuild.h &
85 ..\include\curl\curlrules.h
87 $(OBJ_DIR)\writeenv.obj: writeenv.c setup.h config-win32.h ..\lib\setup_once.h
89 $(OBJ_DIR)\writeout.obj: writeout.c setup.h config-win32.h ..\lib\setup_once.h &
90 ..\include\curl\curl.h ..\include\curl\curlver.h &
91 ..\include\curl\curlbuild.h ..\include\curl\curlrules.h &
92 ..\include\curl\easy.h ..\include\curl\multi.h ..\include\curl\curl.h &
93 ..\include\curl\mprintf.h writeout.h
95 $(OBJ_DIR)\curlutil.obj: curlutil.c setup.h config-win32.h ..\lib\setup_once.h &