scar Morales Viv updated the libcurl.framework.make file.
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel (27 May 2006)
|
||||||
|
- <20>scar Morales Viv<69> updated the libcurl.framework.make file.
|
||||||
|
|
||||||
Daniel (26 May 2006)
|
Daniel (26 May 2006)
|
||||||
- Olaf St<53>ben fixed a bug that caused Digest authentication with md5-sess to
|
- Olaf St<53>ben fixed a bug that caused Digest authentication with md5-sess to
|
||||||
fail. When using the md5-sess, the result was not Md5 encoded and Base64
|
fail. When using the md5-sess, the result was not Md5 encoded and Base64
|
||||||
|
|||||||
@@ -3,19 +3,27 @@
|
|||||||
TMP_DIR = ../lib/.lib
|
TMP_DIR = ../lib/.lib
|
||||||
LIB_DIR = ../lib
|
LIB_DIR = ../lib
|
||||||
|
|
||||||
|
# Sets the SDK. 10.4u.sdk is the minimum for building a Universal Binary.
|
||||||
|
SDK = /Developer/SDKs/MacOSX10.4u.sdk
|
||||||
|
|
||||||
|
# Sets the minimum OSX version where the framework will work.
|
||||||
|
ENVP = MACOSX_DEPLOYMENT_TARGET=10.3
|
||||||
|
|
||||||
# for debug symbols add the -g option. Remove the -O2 option for best debuggin.
|
# for debug symbols add the -g option. Remove the -O2 option for best debuggin.
|
||||||
# Can be compiled with -O3 optimizations.
|
# Can be compiled with -O3 optimizations.
|
||||||
C_OPTIONS = \
|
C_OPTIONS = -isysroot $(SDK) \
|
||||||
-fno-common \
|
-fno-common \
|
||||||
-O2 \
|
-Os \
|
||||||
-DHAVE_CONFIG_H \
|
-DHAVE_CONFIG_H \
|
||||||
-DPIC \
|
-DPIC \
|
||||||
-I../lib \
|
-I../lib \
|
||||||
-I../include \
|
-I../include \
|
||||||
-Wall
|
-Wall \
|
||||||
|
-arch ppc \
|
||||||
|
-arch i386
|
||||||
|
|
||||||
LIBRARIES = /usr/lib/libssl.dylib \
|
LIBRARIES = $(SDK)/usr/lib/libssl.dylib \
|
||||||
/usr/lib/libcrypto.dylib \
|
$(SDK)/usr/lib/libcrypto.dylib \
|
||||||
-lz
|
-lz
|
||||||
|
|
||||||
# These libtool options are needed for a framework.
|
# These libtool options are needed for a framework.
|
||||||
@@ -25,7 +33,11 @@ LIBRARIES = /usr/lib/libssl.dylib \
|
|||||||
# For prebinding 0x10400000 was chosen a bit at random.
|
# For prebinding 0x10400000 was chosen a bit at random.
|
||||||
# If this overlaps one of you current libs just change in the makefile.
|
# If this overlaps one of you current libs just change in the makefile.
|
||||||
# This address is safe for all built in frameworks.
|
# This address is safe for all built in frameworks.
|
||||||
LINK_OPTIONS = -prebind \
|
LINK_OPTIONS = \
|
||||||
|
-Wl,-syslibroot,$(SDK) \
|
||||||
|
-arch ppc \
|
||||||
|
-arch i386 \
|
||||||
|
-prebind \
|
||||||
-seg1addr 0x10400000 \
|
-seg1addr 0x10400000 \
|
||||||
-dynamiclib \
|
-dynamiclib \
|
||||||
-install_name @executable_path/../Frameworks/libcurl.framework/libcurl
|
-install_name @executable_path/../Frameworks/libcurl.framework/libcurl
|
||||||
@@ -71,6 +83,7 @@ OBJECTS = $(TMP_DIR)/base64.o \
|
|||||||
$(TMP_DIR)/parsedate.o \
|
$(TMP_DIR)/parsedate.o \
|
||||||
$(TMP_DIR)/progress.o \
|
$(TMP_DIR)/progress.o \
|
||||||
$(TMP_DIR)/security.o \
|
$(TMP_DIR)/security.o \
|
||||||
|
$(TMP_DIR)/select.o \
|
||||||
$(TMP_DIR)/sendf.o \
|
$(TMP_DIR)/sendf.o \
|
||||||
$(TMP_DIR)/share.o \
|
$(TMP_DIR)/share.o \
|
||||||
$(TMP_DIR)/speedcheck.o \
|
$(TMP_DIR)/speedcheck.o \
|
||||||
@@ -81,6 +94,7 @@ OBJECTS = $(TMP_DIR)/base64.o \
|
|||||||
$(TMP_DIR)/strtok.o \
|
$(TMP_DIR)/strtok.o \
|
||||||
$(TMP_DIR)/strtoofft.o \
|
$(TMP_DIR)/strtoofft.o \
|
||||||
$(TMP_DIR)/telnet.o \
|
$(TMP_DIR)/telnet.o \
|
||||||
|
$(TMP_DIR)/tftp.o \
|
||||||
$(TMP_DIR)/timeval.o \
|
$(TMP_DIR)/timeval.o \
|
||||||
$(TMP_DIR)/transfer.o \
|
$(TMP_DIR)/transfer.o \
|
||||||
$(TMP_DIR)/url.o \
|
$(TMP_DIR)/url.o \
|
||||||
@@ -97,12 +111,16 @@ $(LIB_DIR) :
|
|||||||
# This builds the framework structure and links everything properly
|
# This builds the framework structure and links everything properly
|
||||||
$(LIB_DIR)/libcurl.framework: $(OBJECTS) $(LIB_DIR)/libcurl.plist
|
$(LIB_DIR)/libcurl.framework: $(OBJECTS) $(LIB_DIR)/libcurl.plist
|
||||||
mkdir -p $(LIB_DIR)/libcurl.framework/Versions/A/Resources
|
mkdir -p $(LIB_DIR)/libcurl.framework/Versions/A/Resources
|
||||||
$(CC) $(LINK_OPTIONS) $(LIBRARIES) $(OBJECTS) \
|
$(ENVP) $(CC) $(LINK_OPTIONS) $(LIBRARIES) $(OBJECTS) \
|
||||||
-o $(LIB_DIR)/libcurl.framework/Versions/A/libcurl
|
-o $(LIB_DIR)/libcurl.framework/Versions/A/libcurl
|
||||||
cp $(LIB_DIR)/libcurl.plist $(LIB_DIR)/libcurl.framework/Versions/A/Resources/Info.plist
|
cp $(LIB_DIR)/libcurl.plist $(LIB_DIR)/libcurl.framework/Versions/A/Resources/Info.plist
|
||||||
|
mkdir -p $(LIB_DIR)/libcurl.framework/Versions/A/Headers
|
||||||
|
cp $(LIB_DIR)/../include/curl/* $(LIB_DIR)/libcurl.framework/Versions/A/Headers
|
||||||
|
rm $(LIB_DIR)/libcurl.framework/Versions/A/Headers/Make*
|
||||||
cd $(LIB_DIR)/libcurl.framework; \
|
cd $(LIB_DIR)/libcurl.framework; \
|
||||||
ln -fs ./Versions/A/libcurl libcurl; \
|
ln -fs ./Versions/A/libcurl libcurl; \
|
||||||
ln -fs ./Versions/A/Resources Resources
|
ln -fs ./Versions/A/Resources Resources; \
|
||||||
|
ln -fs ./Versions/A/Headers Headers
|
||||||
cd $(LIB_DIR)/libcurl.framework/Versions; \
|
cd $(LIB_DIR)/libcurl.framework/Versions; \
|
||||||
ln -fs ./A Current
|
ln -fs ./A Current
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user