update dev300-m58
[ooovba.git] / curl / makefile.mk
blobd3ad3ba28bae4474701f0f036fd88c59d6d5974a
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.25 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
31 PRJ=.
33 PRJNAME=so_curl
34 TARGET=so_curl
36 # --- Settings -----------------------------------------------------
38 .INCLUDE : settings.mk
40 .IF "$(SYSTEM_CURL)" == "YES"
41 all:
42 @echo "An already available installation of curl should exist on your system."
43 @echo "Therefore the version provided here does not need to be built in addition."
44 .ENDIF
46 # --- Files --------------------------------------------------------
48 TARFILE_NAME=curl-7.12.2
49 PATCH_FILES=curl-7.12.2.patch
50 CONVERTFILES= \
51 lib$/Makefile.vc6
53 ADDITIONAL_FILES= lib$/config-os2.h lib$/Makefile.os2
55 .IF "$(GUI)"=="UNX"
57 .IF "$(SYSBASE)"!=""
58 curl_CFLAGS+=-I$(SYSBASE)$/usr$/include
59 curl_LDFLAGS+=-L$(SYSBASE)$/usr$/lib
60 .ENDIF # "$(SYSBASE)"!=""
62 .IF "$(OS)$(COM)$(CPU)"=="LINUXGCCI"
63 curl_LDFLAGS+=-Wl,-z,noexecstack
64 .ENDIF
66 .IF "$(OS)$(CPU)"=="SOLARISU"
67 curl_CFLAGS+:=$(ARCH_FLAGS)
68 curl_LDFLAGS+:=$(ARCH_FLAGS)
69 .ENDIF
71 CONFIGURE_DIR=.$/
72 #relative to CONFIGURE_DIR
73 CONFIGURE_ACTION=.$/configure
74 CONFIGURE_FLAGS= --without-ssl --without-libidn --enable-ftp --enable-ipv6 --enable-http --disable-gopher --disable-file --disable-ldap --disable-telnet --disable-dict --disable-static CPPFLAGS="$(curl_CFLAGS)" LDFLAGS="$(curl_LDFLAGS)"
76 BUILD_DIR=$(CONFIGURE_DIR)$/lib
77 .IF "$(OS)"=="IRIX"
78 BUILD_ACTION=gmake
79 .ELSE
80 BUILD_ACTION=$(GNUMAKE)
81 .ENDIF
82 BUILD_FLAGS+= -j$(EXTMAXPROCESS)
84 OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl$(DLLPOST).3
85 .ENDIF # "$(GUI)"=="UNX"
88 .IF "$(GUI)"=="WNT"
89 .IF "$(COM)"=="GCC"
90 curl_CC=$(CC)
91 .IF "$(MINGW_SHARED_GCCLIB)"=="YES"
92 curl_CC+=-shared-libgcc
93 .ENDIF
94 curl_LIBS=-lws2_32 -lwinmm -lmingwthrd
95 .IF "$(MINGW_SHARED_GXXLIB)"=="YES"
96 curl_LIBS+=-lstdc++_s
97 .ENDIF
98 CONFIGURE_DIR=.$/
99 #relative to CONFIGURE_DIR
100 CONFIGURE_ACTION=.$/configure
101 CONFIGURE_FLAGS= --without-ssl --enable-ftp --enable-ipv6 --disable-http --disable-gopher --disable-file --disable-ldap --disable-telnet --disable-dict --build=i586-pc-mingw32 --host=i586-pc-mingw32 CC="$(curl_CC)" OBJDUMP="$(WRAPCMD) objdump" CFLAGS=-D_MT LDFLAGS="-L$(ILIB:s/;/ -L/)" LIBS="$(curl_LIBS)"
102 BUILD_DIR=$(CONFIGURE_DIR)$/lib
103 BUILD_ACTION=make
104 OUT2BIN=$(BUILD_DIR)$/.libs$/libcurl*.dll
105 OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl*.a
106 .ELSE
107 # make use of stlport headerfiles
108 EXT_USE_STLPORT=TRUE
110 .IF "$(CCNUMVER)" > "001399999999"
111 EXCFLAGS="/EHa /Zc:wchar_t- /D "_CRT_SECURE_NO_DEPRECATE""
112 .ELSE
113 EXCFLAGS="/EHsc /YX"
114 .ENDIF
116 BUILD_DIR=.$/lib
117 .IF "$(debug)"==""
118 BUILD_ACTION=nmake -f Makefile.vc6 cfg=release-dll EXCFLAGS=$(EXCFLAGS)
119 .ELSE
120 BUILD_ACTION=nmake -f Makefile.vc6 cfg=debug-dll EXCFLAGS=$(EXCFLAGS)
121 .ENDIF
123 OUT2BIN=$(BUILD_DIR)$/libcurl.dll
124 OUT2LIB=$(BUILD_DIR)$/libcurl.lib
126 .ENDIF
127 .ENDIF # "$(GUI)"=="WNT"
129 .IF "$(GUI)"=="OS2"
130 # make use of stlport headerfiles
131 EXT_USE_STLPORT=TRUE
133 BUILD_DIR=.$/lib
134 .IF "$(debug)"==""
135 BUILD_ACTION=make -f Makefile.os2
136 .ELSE
137 BUILD_ACTION=make -f Makefile.os2
138 .ENDIF
140 OUT2BIN=$(BUILD_DIR)$/libcurl.dll
141 OUT2LIB=$(BUILD_DIR)$/libcurl.lib
143 .ENDIF # "$(GUI)"=="OS2"
145 OUT2INC= \
146 include$/curl$/easy.h \
147 include$/curl$/multi.h \
148 include$/curl$/curl.h \
149 include$/curl$/curlver.h \
150 include$/curl$/types.h \
151 include$/curl$/stdcheaders.h \
152 include$/curl$/mprintf.h
154 # --- Targets ------------------------------------------------------
156 .INCLUDE : set_ext.mk
157 .INCLUDE : target.mk
158 .INCLUDE : tg_ext.mk