~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to lib/Makefile.m32

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2005-03-23 18:41:29 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050323184129-9hgq7luenq51umpu
Tags: upstream-7.12.3
ImportĀ upstreamĀ versionĀ 7.12.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#############################################################
 
2
# $Id: Makefile.m32,v 1.32 2004/12/19 11:52:31 giva Exp $
2
3
#
3
4
## Makefile for building libcurl.a with MingW32 (GCC-3.2) and
4
5
## optionally OpenSSL (0.9.7)
 
6
##
5
7
## Use: make -f Makefile.m32
6
8
##
7
9
## Comments to: Troy Engel <tengel@sonic.net> or
8
10
##              Joern Hartroth <hartroth@acm.org>
9
11
 
 
12
ifndef OPENSSL_PATH
 
13
OPENSSL_PATH = ../../openssl-0.9.7d
 
14
endif
 
15
ifndef ZLIB_PATH
 
16
ZLIB_PATH = ../../zlib-1.2.1
 
17
endif
 
18
 
10
19
CC = gcc
11
20
AR = ar
12
 
RM = rm -f 
 
21
RM = rm -f
13
22
RANLIB = ranlib
14
23
STRIP = strip -g
15
 
OPENSSL_PATH = ../../openssl-0.9.7d
16
 
ZLIB_PATH = ../../zlib-1.2.1
17
24
 
18
25
########################################################
19
26
## Nothing more to do below this line!
20
27
 
21
 
INCLUDES = -I. -I.. -I../include -I../src
22
 
CFLAGS = -g -O2 -DMINGW32
 
28
INCLUDES = -I. -I../include
 
29
CFLAGS = -g -O2 -DMINGW32 -DBUILDING_LIBCURL -DHAVE_LONGLONG
23
30
ifdef SSL
24
31
  INCLUDES += -I"$(OPENSSL_PATH)/outinc" -I"$(OPENSSL_PATH)/outinc/openssl"
25
 
  CFLAGS += -DUSE_SSLEAY -DHAVE_OPENSSL_ENGINE_H
 
32
  CFLAGS += -DUSE_SSLEAY -DUSE_OPENSSL -DHAVE_OPENSSL_ENGINE_H -DHAVE_OPENSSL_PKCS12_H \
 
33
            -DHAVE_ENGINE_LOAD_BUILTIN_ENGINES -DOPENSSL_NO_KRB5 \
 
34
            -DCURL_CA_BUNDLE='getenv("CURL_CA_BUNDLE")'
26
35
  DLL_LIBS = -L$(OPENSSL_PATH)/out -leay32 -lssl32
27
36
endif
28
37
ifdef ZLIB
32
41
endif
33
42
COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
34
43
 
 
44
# Makefile.inc provides the CSOURCES and HHEADERS defines
 
45
include Makefile.inc
 
46
 
 
47
libcurl_a_OBJECTS := $(patsubst %.c,%.o,$(strip $(CSOURCES)))
 
48
 
35
49
libcurl_a_LIBRARIES = libcurl.a
36
 
 
37
 
libcurl_a_SOURCES = arpa_telnet.h file.c netrc.h timeval.c base64.c \
38
 
        file.h hostip.c progress.c timeval.h base64.h formdata.c hostip.h     \
39
 
        progress.h cookie.c formdata.h http.c sendf.c cookie.h ftp.c          \
40
 
        http.h sendf.h url.c dict.c ftp.h if2ip.c speedcheck.c url.h          \
41
 
        dict.h getdate.c if2ip.h speedcheck.h urldata.h transfer.c getdate.h  \
42
 
        ldap.c ssluse.c version.c transfer.h getenv.c                         \
43
 
        ldap.h ssluse.h escape.c getenv.h mprintf.c telnet.c escape.h         \
44
 
        netrc.c telnet.h getinfo.c strequal.c strequal.h easy.c     \
45
 
        security.h security.c krb4.h krb4.c memdebug.h memdebug.c             \
46
 
        inet_ntoa_r.h http_chunks.h http_chunks.c                             \
47
 
        strtok.c connect.c hash.c llist.c multi.c share.c share.h             \
48
 
        content_encoding.h content_encoding.c http_digest.h http_digest.c     \
49
 
        http_negotiate.c http_negotiate.h http_ntlm.c http_ntlm.h md5.h       \
50
 
        md5.c strtoofft.c inet_pton.c
51
 
 
52
 
libcurl_a_OBJECTS =  file.o timeval.o base64.o hostip.o progress.o \
53
 
        formdata.o cookie.o http.o sendf.o ftp.o url.o dict.o if2ip.o \
54
 
        speedcheck.o getdate.o transfer.o ldap.o ssluse.o version.o \
55
 
        getenv.o escape.o mprintf.o telnet.o netrc.o getinfo.o \
56
 
        strequal.o easy.o security.o krb4.o memdebug.o http_chunks.o \
57
 
        strtok.o connect.o hash.o llist.o multi.o share.o \
58
 
        content_encoding.o http_digest.o http_negotiate.o http_ntlm.o md5.o \
59
 
        strtoofft.o inet_pton.o
60
 
 
61
 
LIBRARIES =  $(libcurl_a_LIBRARIES)
62
 
SOURCES = $(libcurl_a_SOURCES)
63
 
OBJECTS = $(libcurl_a_OBJECTS)
64
 
 
 
50
libcurl_a_DEPENDENCIES = $(strip $(CSOURCES) $(HHEADERS))
65
51
 
66
52
all: libcurl.a libcurl.dll libcurldll.a
67
53
 
75
61
 
76
62
# remove the last line above to keep debug info
77
63
 
78
 
libcurl.dll libcurldll.a: libcurl.a libcurl.def $(RESOURCE)
 
64
libcurl.dll libcurldll.a: $(libcurl_a_OBJECTS) $(RESOURCE)
79
65
        $(RM) $@
80
 
        dllwrap --dllname $@ --output-lib libcurldll.a --export-all --def libcurl.def $(libcurl_a_LIBRARIES) $(RESOURCE) $(DLL_LIBS) -lwsock32 -lws2_32 -lwinmm
81
 
        $(STRIP) $@
 
66
        $(CC) -s -shared -Wl,--out-implib,libcurldll.a -o libcurl.dll \
 
67
          $(libcurl_a_OBJECTS) $(RESOURCE) $(DLL_LIBS) -lws2_32 -lwinmm
82
68
 
83
 
# remove the last line above to keep debug info
 
69
# remove the above '-s' to keep debug info
84
70
 
85
71
.c.o:
86
72
        $(COMPILE) -c $<
87
73
 
88
 
.s.o:
89
 
        $(COMPILE) -c $<
90
 
 
91
 
.S.o:
92
 
        $(COMPILE) -c $<
93
 
 
94
74
libcurl.res: libcurl.rc
95
75
        windres -DCURLDEBUG=0 -O COFF -o $@ -i $^
96
76