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

« back to all changes in this revision

Viewing changes to src/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 program's name
25
34
PROGNAME = curl.exe
26
35
 
27
36
# Setup environment
28
 
CXX      = bcc32
 
37
PP_CMD   = cpp32 -q -P-
 
38
CC_CMD   = bcc32 -q -c
29
39
LD       = bcc32
30
 
CP       = copy
31
 
RM       = del
32
 
LIB      = tlib
 
40
RM       = del 2>NUL
 
41
MKDIR    = mkdir
 
42
RMDIR    = rmdir /s /q 2>NUL
33
43
 
34
 
CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
 
44
CC_FLAGS = -5 -O2 -tWM -w -w-aus -w-ccc -w-dup -w-prc -w-pro -w-rch -w-sig -w-spa -Dinline=__inline
35
45
LDFLAGS  = -q -lq -lap
36
46
 
37
 
INCDIRS  = -I.;../include;../lib
38
 
LINKLIB  = $(BCCDIR)/lib/cw32mt.lib
39
 
 
40
 
# If you build with SSL support, set WITH_SSL=1
 
47
SRCDIRS  = .;..\lib
 
48
OBJDIR   = .\objs
 
49
INCDIRS  = -I.;..\include;..\lib
 
50
LINKLIB  = $(BCCDIR)\lib\cw32mt.lib
41
51
DEFINES  = -DNDEBUG -DWIN32
42
52
 
43
53
!ifdef DYNAMIC
44
 
LIBCURL_LIB = ../lib/libcurl_imp.lib
 
54
LIBCURL_LIB = ..\lib\libcurl_imp.lib
45
55
!else
46
 
LIBCURL_LIB = ../lib/libcurl.lib
 
56
LIBCURL_LIB = ..\lib\libcurl.lib
47
57
DEFINES = $(DEFINES) -DCURL_STATICLIB
48
58
!endif
49
59
 
 
60
# ZLIB support is enabled setting WITH_ZLIB=1
50
61
!ifdef WITH_ZLIB
51
62
DEFINES  = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
52
63
INCDIRS  = $(INCDIRS);$(ZLIB_PATH)
53
 
LINKLIB  = $(LINKLIB) $(ZLIB_PATH)/zlib.lib
 
64
LINKLIB  = $(LINKLIB) $(ZLIB_PATH)\zlib.lib
54
65
!endif
55
66
 
 
67
# SSL support is enabled setting WITH_SSL=1
56
68
!ifdef WITH_SSL
57
69
DEFINES  = $(DEFINES) -DUSE_SSLEAY
58
 
INCDIRS  = $(INCDIRS);$(OPENSSL_PATH)/inc32;$(OPENSSL_PATH)/inc32/openssl
59
 
LINKLIB  = $(LINKLIB) $(OPENSSL_PATH)/out32/ssleay32.lib $(OPENSSL_PATH)/out32/libeay32.lib
 
70
INCDIRS  = $(INCDIRS);$(OPENSSL_PATH)\inc32;$(OPENSSL_PATH)\inc32\openssl
 
71
LINKLIB  = $(LINKLIB) $(OPENSSL_PATH)\out32\ssleay32.lib $(OPENSSL_PATH)\out32\libeay32.lib
60
72
!endif
61
73
 
62
74
.autodepend
63
75
 
 
76
.path.c   = $(SRCDIRS)
 
77
.path.obj = $(OBJDIR)
 
78
 
64
79
# Makefile.inc provides the CSOURCES and HHEADERS defines
65
 
top_srcdir = ..
 
80
!undef top_srcdir
66
81
!include Makefile.inc
67
82
 
68
 
CSOURCES = $(CURL_CFILES) $(CURLX_ONES)
 
83
CSOURCES = $(CURL_CFILES) $(CURLX_ONES:/lib/=)
69
84
OBJECTS  = $(CSOURCES:.c=.obj)
70
85
 
71
86
.c.obj:
72
 
        $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $<
 
87
        @-$(RM) $(@R).int
 
88
        $(PP_CMD) $(CC_FLAGS) $(INCDIRS) $(DEFINES) -o$(@R).int $(<)
 
89
        $(CC_CMD) $(CC_FLAGS) -o$(@) $(@R).int
73
90
 
74
 
all:    $(PROGNAME)
 
91
all:    $(OBJDIR) $(PROGNAME)
75
92
 
76
93
clean:
77
 
        -$(RM) $(PROGNAME)
78
 
        -$(RM) *.obj
79
 
        -$(RM) hugehelp.c
 
94
        @-$(RMDIR) $(OBJDIR)
 
95
        @-$(RM) $(PROGNAME)
 
96
        @-$(RM) curl.tds
 
97
 
 
98
$(OBJDIR):
 
99
        @-$(RMDIR) $(OBJDIR)
 
100
        @-$(MKDIR) $(OBJDIR)
80
101
 
81
102
$(PROGNAME): $(OBJECTS) $(LIBCURL_LIB) $(LINKLIB)
82
 
        @-$(RM) $@
 
103
        @-$(RM) $(PROGNAME)
83
104
        $(LD) $(LDFLAGS) -e$@ $**
84
105
 
85
 
hugehelp.c: hugehelp.c.cvs
86
 
        @echo Creating $@
87
 
        @$(CP) $** $@
88
 
 
89
 
 
 
106
 
 
107
# End of Makefile.b32