1
#############################################################
2
# $Id: Makefile.m32,v 1.6 2001/09/25 07:55:19 bagder Exp $
4
## Makefile for building curl.exe with MingW32 (GCC-2.95) and
5
## optionally OpenSSL (0.9.6)
7
## Use: make -f Makefile.m32 [SSL=1] [DYN=1]
9
## Comments to: Troy Engel <tengel@sonic.net> or
10
## Joern Hartroth <hartroth@acm.org>
14
OPENSSL_PATH = ../../openssl-0.9.6b
16
# We may need these someday
20
########################################################
21
## Nothing more to do below this line!
23
INCLUDES = -I. -I.. -I../include
24
CFLAGS = -g -O2 -DMINGW32
26
COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
27
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
29
curl_PROGRAMS = curl.exe
30
curl_OBJECTS = main.o hugehelp.o urlglob.o writeout.o
31
curl_SOURCES = main.c hugehelp.c urlglob.c writeout.c
33
curl_DEPENDENCIES = ../lib/libcurldll.a ../lib/libcurl.dll
34
curl_LDADD = -L../lib -lcurldll
36
curl_DEPENDENCIES = ../lib/libcurl.a
37
curl_LDADD = -L../lib -lcurl
39
curl_LDADD += -lwsock32 -lws2_32
41
curl_LDADD += -L$(OPENSSL_PATH)/out -leay32 -lssl32 -lRSAglue
44
PROGRAMS = $(curl_PROGRAMS)
45
SOURCES = $(curl_SOURCES)
46
OBJECTS = $(curl_OBJECTS)
50
curl.exe: $(curl_OBJECTS) $(curl_DEPENDENCIES)
52
$(LINK) $(curl_OBJECTS) $(curl_LDADD)
55
# We don't have nroff normally under win32
56
# hugehelp.c: ../README.curl ../curl.1 mkhelp.pl
58
# $(NROFF) -man ../curl.1 | $(PERL) mkhelp.pl ../README.curl > hugehelp.c
70
-@erase $(curl_OBJECTS)
73
-@erase $(curl_PROGRAMS)
1
#############################################################
2
# $Id: Makefile.m32,v 1.16 2004/04/02 07:18:13 bagder Exp $
4
## Makefile for building curl.exe with MingW32 (GCC-3.2) and
5
## optionally OpenSSL (0.9.7)
7
## Use: make -f Makefile.m32 [SSL=1] [DYN=1]
9
## Comments to: Troy Engel <tengel@sonic.net> or
10
## Joern Hartroth <hartroth@acm.org>
15
OPENSSL_PATH = ../../openssl-0.9.7d
16
ZLIB_PATH = ../../zlib-1.2.1
18
# We may need these someday
22
########################################################
23
## Nothing more to do below this line!
25
INCLUDES = -I. -I.. -I../include -I../lib -I$(ZLIB_PATH)
26
CFLAGS = -g -O2 -DMINGW32
28
CFLAGS += -DUSE_SSLEAY -DHAVE_OPENSSL_ENGINE_H
31
COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
32
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
34
curl_PROGRAMS = curl.exe
35
curl_OBJECTS = main.o hugehelp.o urlglob.o writeout.o getpass.o homedir.o
36
curl_SOURCES = main.c hugehelp.c urlglob.c writeout.c getpass.c homedir.c
38
curl_DEPENDENCIES = ../lib/libcurldll.a ../lib/libcurl.dll
39
curl_LDADD = -L../lib -lcurldll
41
curl_DEPENDENCIES = ../lib/libcurl.a
42
curl_LDADD = -L../lib -lcurl
44
curl_LDADD += -lwsock32 -lws2_32 -lwinmm -L$(ZLIB_PATH) -lz
46
curl_LDADD += -L$(OPENSSL_PATH)/out -leay32 -lssl32
49
PROGRAMS = $(curl_PROGRAMS)
50
SOURCES = $(curl_SOURCES)
51
OBJECTS = $(curl_OBJECTS)
55
curl.exe: $(curl_OBJECTS) $(curl_DEPENDENCIES)
57
$(LINK) $(curl_OBJECTS) $(curl_LDADD)
60
# We don't have nroff normally under win32
61
# hugehelp.c: ../README.curl ../curl.1 mkhelp.pl
63
# $(NROFF) -man ../curl.1 | $(PERL) mkhelp.pl ../README.curl > hugehelp.c
75
$(RM) $(curl_OBJECTS) curl.exe
78
$(RM) $(curl_PROGRAMS)