sync master with lastest vba changes
[ooovba.git] / curl / makefile.mk
blobfc2904cf2c0b87573c532e2d0aa853c047847490
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_FILE_NAME=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)*
85 .ENDIF # "$(GUI)"=="UNX"
88 .IF "$(GUI)"=="WNT"
89 .IF "$(COM)"=="GCC"
90 CONFIGURE_DIR=.$/
91 #relative to CONFIGURE_DIR
92 CONFIGURE_ACTION=.$/configure
93 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 OBJDUMP="$(WRAPCMD) objdump" CFLAGS=-D_MT LDFLAGS="-L$(ILIB:s/;/ -L/)" LIBS="-lws2_32 -lwinmm -lmingwthrd"
94 BUILD_DIR=$(CONFIGURE_DIR)$/lib
95 BUILD_ACTION=make
96 OUT2BIN=$(BUILD_DIR)$/.libs$/libcurl*.dll
97 OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl*.a
98 .ELSE
99 # make use of stlport headerfiles
100 EXT_USE_STLPORT=TRUE
102 .IF "$(CCNUMVER)" > "001399999999"
103 EXCFLAGS="/EHa /Zc:wchar_t- /D "_CRT_SECURE_NO_DEPRECATE""
104 .ELSE
105 EXCFLAGS="/EHsc /YX"
106 .ENDIF
108 BUILD_DIR=.$/lib
109 .IF "$(debug)"==""
110 BUILD_ACTION=nmake -f Makefile.vc6 cfg=release-dll EXCFLAGS=$(EXCFLAGS)
111 .ELSE
112 BUILD_ACTION=nmake -f Makefile.vc6 cfg=debug-dll EXCFLAGS=$(EXCFLAGS)
113 .ENDIF
115 OUT2BIN=$(BUILD_DIR)$/libcurl.dll
116 OUT2LIB=$(BUILD_DIR)$/libcurl.lib
118 .ENDIF
119 .ENDIF # "$(GUI)"=="WNT"
121 .IF "$(GUI)"=="OS2"
122 # make use of stlport headerfiles
123 EXT_USE_STLPORT=TRUE
125 BUILD_DIR=.$/lib
126 .IF "$(debug)"==""
127 BUILD_ACTION=make -f Makefile.os2
128 .ELSE
129 BUILD_ACTION=make -f Makefile.os2
130 .ENDIF
132 OUT2BIN=$(BUILD_DIR)$/libcurl.dll
133 OUT2LIB=$(BUILD_DIR)$/libcurl.lib
135 .ENDIF # "$(GUI)"=="OS2"
137 OUT2INC= \
138 include$/curl$/easy.h \
139 include$/curl$/multi.h \
140 include$/curl$/curl.h \
141 include$/curl$/curlver.h \
142 include$/curl$/types.h \
143 include$/curl$/stdcheaders.h \
144 include$/curl$/mprintf.h
146 # --- Targets ------------------------------------------------------
148 .INCLUDE : set_ext.mk
149 .INCLUDE : target.mk
150 .INCLUDE : tg_ext.mk