~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to lib/Makefile.b32

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2011-02-28 19:35:36 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20110228193536-p3a9jawxxofcsz7o
Tags: upstream-7.21.4
ImportĀ upstreamĀ versionĀ 7.21.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#
7
7
#  'BCCDIR' has to be set up to point to the base directory
8
8
#  of the compiler, i.e. SET BCCDIR = c:\Borland\BCC55
9
 
#  where c:\Borland\BCC55 is the compiler is installed
10
9
#
11
 
#  Written by Jaepil Kim, pit@paradise.net.nz
 
10
#  Initially written by Jaepil Kim, pit@paradise.net.nz
12
11
############################################################
13
12
 
 
13
!if "$(__MAKE__)" == ""
 
14
!error __MAKE__ not defined. Use Borlands's MAKE to process this makefile.
 
15
!endif
 
16
 
 
17
# Borland's $(MAKEDIR) expands to the path where make.exe is located,
 
18
# use this feature to define BCCDIR when user has not defined BCCDIR.
 
19
!ifndef BCCDIR
 
20
BCCDIR = $(MAKEDIR)\..
 
21
!endif
 
22
 
14
23
# Edit the path below to point to the base of your Zlib sources.
15
24
!ifndef ZLIB_PATH
16
 
ZLIB_PATH = ../../zlib-1.2.1
 
25
ZLIB_PATH = ..\..\zlib-1.2.5
17
26
!endif
18
27
 
19
28
# Edit the path below to point to the base of your OpenSSL package.
20
29
!ifndef OPENSSL_PATH
21
 
OPENSSL_PATH = ../../openssl-0.9.7d
 
30
OPENSSL_PATH = ..\..\openssl-0.9.8q
22
31
!endif
23
32
 
24
33
# Set libcurl static lib, dll and import lib
27
36
LIBCURL_IMPLIB = libcurl_imp.lib
28
37
 
29
38
# Setup environment
30
 
CXX      = bcc32
 
39
PP_CMD   = cpp32 -q -P-
 
40
CC_CMD   = bcc32 -q -c
31
41
LD       = bcc32
32
 
CP       = copy
33
 
RM       = del
 
42
RM       = del 2>NUL
 
43
MKDIR    = mkdir
 
44
RMDIR    = rmdir /s /q 2>NUL
34
45
LIB      = tlib
35
46
IMPLIB   = implib
36
47
 
37
 
CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
 
48
CC_FLAGS = -5 -O2 -tWM -w -w-aus -w-ccc -w-dup -w-prc -w-pro -w-rch -w-sig -w-spa -Dinline=__inline
38
49
LIBFLAGS = /C /P32
39
50
LDFLAGS  = -q -lq -laa -tWD
40
51
 
41
 
INCDIRS  = -I.;../include
42
 
LINKLIB  = $(BCCDIR)/lib/cw32mt.lib
43
 
 
44
 
# If you build with SSL support, set WITH_SSL=1
45
 
DEFINES  = -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DBUILDING_LIBCURL
46
 
 
 
52
SRCDIR   = .
 
53
OBJDIR   = .\objs
 
54
INCDIRS  = -I.;..\include
 
55
LINKLIB  = $(BCCDIR)\lib\cw32mt.lib
 
56
DEFINES  = -DNDEBUG -DWIN32 -DBUILDING_LIBCURL
 
57
 
 
58
# By default SSPI support is enabled for BCC
 
59
!ifndef DISABLE_SSPI
 
60
DEFINES  = $(DEFINES) -DUSE_WINDOWS_SSPI
 
61
!endif
 
62
 
 
63
# By default LDAP support is disabled for BCC
 
64
!ifndef WITH_LDAP
 
65
DEFINES  = $(DEFINES) -DCURL_DISABLE_LDAP
 
66
!endif
 
67
 
 
68
# ZLIB support is enabled setting WITH_ZLIB=1
47
69
!ifdef WITH_ZLIB
48
70
DEFINES  = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
49
71
INCDIRS  = $(INCDIRS);$(ZLIB_PATH)
50
 
LINKLIB  = $(LINKLIB) $(ZLIB_PATH)/zlib.lib
 
72
LINKLIB  = $(LINKLIB) $(ZLIB_PATH)\zlib.lib
51
73
!endif
52
74
 
 
75
# SSL support is enabled setting WITH_SSL=1
53
76
!ifdef WITH_SSL
54
77
DEFINES  = $(DEFINES) -DUSE_SSLEAY
55
 
INCDIRS  = $(INCDIRS);$(OPENSSL_PATH)/inc32;$(OPENSSL_PATH)/inc32/openssl
56
 
LINKLIB  = $(LINKLIB) $(OPENSSL_PATH)/out32/ssleay32.lib $(OPENSSL_PATH)/out32/libeay32.lib
 
78
INCDIRS  = $(INCDIRS);$(OPENSSL_PATH)\inc32;$(OPENSSL_PATH)\inc32\openssl
 
79
LINKLIB  = $(LINKLIB) $(OPENSSL_PATH)\out32\ssleay32.lib $(OPENSSL_PATH)\out32\libeay32.lib
57
80
!endif
58
81
 
59
82
.autodepend
60
83
 
 
84
.path.c   = $(SRCDIR)
 
85
.path.obj = $(OBJDIR)
 
86
 
61
87
# Makefile.inc provides the CSOURCES and HHEADERS defines
62
88
!include Makefile.inc
63
89
 
64
90
OBJECTS = $(CSOURCES:.c=.obj)
65
91
 
66
92
.c.obj:
67
 
        $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $<
 
93
        @-$(RM) $(@R).int
 
94
        $(PP_CMD) $(CC_FLAGS) $(INCDIRS) $(DEFINES) -o$(@R).int $(<)
 
95
        $(CC_CMD) $(CC_FLAGS) -o$(@) $(@R).int
68
96
 
69
 
all:    $(LIBCURL_LIB) $(LIBCURL_DLL)
 
97
all:    $(OBJDIR) $(LIBCURL_LIB) $(LIBCURL_DLL)
70
98
 
71
99
clean:
72
 
        -$(RM) $(LIBCURL_LIB)
73
 
        -$(RM) $(LIBCURL_IMPLIB)
74
 
        -$(RM) libcurl.tds
75
 
        -$(RM) *.obj
 
100
        @-$(RMDIR) $(OBJDIR)
 
101
        @-$(RM) $(LIBCURL_LIB)
 
102
        @-$(RM) $(LIBCURL_IMPLIB)
 
103
        @-$(RM) libcurl.tds
 
104
 
 
105
$(OBJDIR):
 
106
        @-$(RMDIR) $(OBJDIR)
 
107
        @-$(MKDIR) $(OBJDIR)
76
108
 
77
109
$(LIBCURL_LIB): $(OBJECTS)
78
 
        @-$(RM) $@
 
110
        @-$(RM) $(LIBCURL_LIB)
79
111
        $(LIB) $(LIBFLAGS) $@ @&&!
80
112
+$(**: = &^
81
113
+)
87
119
        $(LD) $(LDFLAGS) -e$(LIBCURL_DLL) $**
88
120
        $(IMPLIB) $(LIBCURL_IMPLIB) $(LIBCURL_DLL)
89
121
 
 
122
 
 
123
# End of Makefile.b32