~ubuntu-branches/ubuntu/warty/curl/warty-security

« back to all changes in this revision

Viewing changes to src/Makefile.m32

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#############################################################
2
 
# $Id: Makefile.m32,v 1.6 2001/09/25 07:55:19 bagder Exp $
3
 
#
4
 
## Makefile for building curl.exe with MingW32 (GCC-2.95) and
5
 
## optionally OpenSSL (0.9.6)
6
 
##
7
 
## Use: make -f Makefile.m32 [SSL=1] [DYN=1]
8
 
##
9
 
## Comments to: Troy Engel <tengel@sonic.net> or
10
 
##              Joern Hartroth <hartroth@acm.org>
11
 
 
12
 
CC = gcc
13
 
STRIP = strip -s
14
 
OPENSSL_PATH = ../../openssl-0.9.6b
15
 
 
16
 
# We may need these someday
17
 
# PERL = perl
18
 
# NROFF = nroff
19
 
 
20
 
########################################################
21
 
## Nothing more to do below this line!
22
 
 
23
 
INCLUDES = -I. -I.. -I../include
24
 
CFLAGS = -g -O2 -DMINGW32
25
 
LDFLAGS = 
26
 
COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
27
 
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
28
 
 
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
32
 
ifdef DYN
33
 
  curl_DEPENDENCIES = ../lib/libcurldll.a ../lib/libcurl.dll
34
 
  curl_LDADD = -L../lib -lcurldll
35
 
else
36
 
  curl_DEPENDENCIES = ../lib/libcurl.a
37
 
  curl_LDADD = -L../lib -lcurl
38
 
endif
39
 
curl_LDADD += -lwsock32 -lws2_32
40
 
ifdef SSL
41
 
  curl_LDADD += -L$(OPENSSL_PATH)/out -leay32 -lssl32 -lRSAglue
42
 
endif
43
 
 
44
 
PROGRAMS = $(curl_PROGRAMS)
45
 
SOURCES = $(curl_SOURCES)
46
 
OBJECTS = $(curl_OBJECTS)
47
 
 
48
 
all: curl.exe
49
 
 
50
 
curl.exe: $(curl_OBJECTS) $(curl_DEPENDENCIES)
51
 
        -@erase $@
52
 
        $(LINK) $(curl_OBJECTS) $(curl_LDADD)
53
 
        $(STRIP) $@
54
 
 
55
 
# We don't have nroff normally under win32
56
 
# hugehelp.c: ../README.curl ../curl.1 mkhelp.pl
57
 
#       -@erase hugehelp.c
58
 
#       $(NROFF) -man ../curl.1 | $(PERL) mkhelp.pl ../README.curl > hugehelp.c
59
 
 
60
 
.c.o:
61
 
        $(COMPILE) -c $<
62
 
 
63
 
.s.o:
64
 
        $(COMPILE) -c $<
65
 
 
66
 
.S.o:
67
 
        $(COMPILE) -c $<
68
 
 
69
 
clean:
70
 
        -@erase $(curl_OBJECTS)
71
 
 
72
 
distrib: clean
73
 
        -@erase $(curl_PROGRAMS)
 
1
#############################################################
 
2
# $Id: Makefile.m32,v 1.16 2004/04/02 07:18:13 bagder Exp $
 
3
#
 
4
## Makefile for building curl.exe with MingW32 (GCC-3.2) and
 
5
## optionally OpenSSL (0.9.7)
 
6
##
 
7
## Use: make -f Makefile.m32 [SSL=1] [DYN=1]
 
8
##
 
9
## Comments to: Troy Engel <tengel@sonic.net> or
 
10
##              Joern Hartroth <hartroth@acm.org>
 
11
 
 
12
CC = gcc
 
13
RM = rm -f
 
14
STRIP = strip -s
 
15
OPENSSL_PATH = ../../openssl-0.9.7d
 
16
ZLIB_PATH = ../../zlib-1.2.1
 
17
 
 
18
# We may need these someday
 
19
# PERL = perl
 
20
# NROFF = nroff
 
21
 
 
22
########################################################
 
23
## Nothing more to do below this line!
 
24
 
 
25
INCLUDES = -I. -I.. -I../include -I../lib -I$(ZLIB_PATH)
 
26
CFLAGS = -g -O2 -DMINGW32
 
27
ifdef SSL
 
28
  CFLAGS += -DUSE_SSLEAY -DHAVE_OPENSSL_ENGINE_H
 
29
endif
 
30
LDFLAGS = 
 
31
COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
 
32
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
 
33
 
 
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
 
37
ifdef DYN
 
38
  curl_DEPENDENCIES = ../lib/libcurldll.a ../lib/libcurl.dll
 
39
  curl_LDADD = -L../lib -lcurldll
 
40
else
 
41
  curl_DEPENDENCIES = ../lib/libcurl.a
 
42
  curl_LDADD = -L../lib -lcurl
 
43
endif
 
44
curl_LDADD += -lwsock32 -lws2_32 -lwinmm -L$(ZLIB_PATH) -lz
 
45
ifdef SSL
 
46
  curl_LDADD += -L$(OPENSSL_PATH)/out -leay32 -lssl32
 
47
endif
 
48
 
 
49
PROGRAMS = $(curl_PROGRAMS)
 
50
SOURCES = $(curl_SOURCES)
 
51
OBJECTS = $(curl_OBJECTS)
 
52
 
 
53
all: curl.exe
 
54
 
 
55
curl.exe: $(curl_OBJECTS) $(curl_DEPENDENCIES)
 
56
        $(RM) $@
 
57
        $(LINK) $(curl_OBJECTS) $(curl_LDADD)
 
58
        $(STRIP) $@
 
59
 
 
60
# We don't have nroff normally under win32
 
61
# hugehelp.c: ../README.curl ../curl.1 mkhelp.pl
 
62
#       $(RM) hugehelp.c
 
63
#       $(NROFF) -man ../curl.1 | $(PERL) mkhelp.pl ../README.curl > hugehelp.c
 
64
 
 
65
.c.o:
 
66
        $(COMPILE) -c $<
 
67
 
 
68
.s.o:
 
69
        $(COMPILE) -c $<
 
70
 
 
71
.S.o:
 
72
        $(COMPILE) -c $<
 
73
 
 
74
clean:
 
75
        $(RM) $(curl_OBJECTS) curl.exe
 
76
 
 
77
distrib: clean
 
78
        $(RM) $(curl_PROGRAMS)