Matt Veenstra:
- removal of getdate.c
- Added hostares.c, hostasyn.c, hostip4.c, hostip6.c, hostsync.c,
hostthre.c, inet_ntop.c, nwlib.c, parsedate.c, sterror.c, strtoofft.c
I have tested the build on 10.3, and will build on 10.2.8 in the next days.
2004-12-08 18:02:55 -05:00
|
|
|
# to build Mac OS X framework call the following line with the directory set properly to lib
|
|
|
|
# make build -e -f libcurl.framework.make
|
2003-11-06 02:42:02 -05:00
|
|
|
TMP_DIR = ../lib/.lib
|
|
|
|
LIB_DIR = ../lib
|
|
|
|
|
2006-05-26 18:23:54 -04:00
|
|
|
# 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
|
|
|
|
|
2004-01-13 03:04:05 -05:00
|
|
|
# for debug symbols add the -g option. Remove the -O2 option for best debuggin.
|
|
|
|
# Can be compiled with -O3 optimizations.
|
2006-05-26 18:23:54 -04:00
|
|
|
C_OPTIONS = -isysroot $(SDK) \
|
2003-11-06 02:42:02 -05:00
|
|
|
-fno-common \
|
2006-05-26 18:23:54 -04:00
|
|
|
-Os \
|
2003-11-06 02:42:02 -05:00
|
|
|
-DHAVE_CONFIG_H \
|
|
|
|
-DPIC \
|
|
|
|
-I../lib \
|
|
|
|
-I../include \
|
2006-05-26 18:23:54 -04:00
|
|
|
-Wall \
|
|
|
|
-arch ppc \
|
|
|
|
-arch i386
|
2003-11-06 02:42:02 -05:00
|
|
|
|
2006-05-26 18:23:54 -04:00
|
|
|
LIBRARIES = $(SDK)/usr/lib/libssl.dylib \
|
|
|
|
$(SDK)/usr/lib/libcrypto.dylib \
|
2004-01-13 03:04:05 -05:00
|
|
|
-lz
|
2003-11-06 02:42:02 -05:00
|
|
|
|
|
|
|
# These libtool options are needed for a framework.
|
|
|
|
# @executable_path tells the application that links to this library where to find it.
|
2004-01-13 03:04:05 -05:00
|
|
|
# On Mac OS X frameworks are usually iniside the application bundle in a frameworks folder.
|
|
|
|
# Define a seg1addr so prebinding does not overlap with other frameworks or bundles.
|
|
|
|
# For prebinding 0x10400000 was chosen a bit at random.
|
|
|
|
# If this overlaps one of you current libs just change in the makefile.
|
|
|
|
# This address is safe for all built in frameworks.
|
2006-05-26 18:23:54 -04:00
|
|
|
LINK_OPTIONS = \
|
|
|
|
-Wl,-syslibroot,$(SDK) \
|
|
|
|
-arch ppc \
|
|
|
|
-arch i386 \
|
|
|
|
-prebind \
|
2004-01-13 03:04:05 -05:00
|
|
|
-seg1addr 0x10400000 \
|
|
|
|
-dynamiclib \
|
Matt Veenstra:
- removal of getdate.c
- Added hostares.c, hostasyn.c, hostip4.c, hostip6.c, hostsync.c,
hostthre.c, inet_ntop.c, nwlib.c, parsedate.c, sterror.c, strtoofft.c
I have tested the build on 10.3, and will build on 10.2.8 in the next days.
2004-12-08 18:02:55 -05:00
|
|
|
-install_name @executable_path/../Frameworks/libcurl.framework/libcurl
|
2003-11-06 02:42:02 -05:00
|
|
|
|
2004-01-13 03:04:05 -05:00
|
|
|
# This is the file list. It is not dynamically generated so this must be updated if new files are added to the build.
|
2003-11-06 02:42:02 -05:00
|
|
|
OBJECTS = $(TMP_DIR)/base64.o \
|
|
|
|
$(TMP_DIR)/connect.o \
|
|
|
|
$(TMP_DIR)/content_encoding.o \
|
|
|
|
$(TMP_DIR)/cookie.o \
|
|
|
|
$(TMP_DIR)/dict.o \
|
|
|
|
$(TMP_DIR)/easy.o \
|
|
|
|
$(TMP_DIR)/escape.o \
|
|
|
|
$(TMP_DIR)/file.o \
|
|
|
|
$(TMP_DIR)/formdata.o \
|
|
|
|
$(TMP_DIR)/ftp.o \
|
|
|
|
$(TMP_DIR)/getenv.o \
|
|
|
|
$(TMP_DIR)/getinfo.o \
|
2005-04-07 16:56:04 -04:00
|
|
|
$(TMP_DIR)/gtls.o \
|
2003-11-06 02:42:02 -05:00
|
|
|
$(TMP_DIR)/hash.o \
|
Matt Veenstra:
- removal of getdate.c
- Added hostares.c, hostasyn.c, hostip4.c, hostip6.c, hostsync.c,
hostthre.c, inet_ntop.c, nwlib.c, parsedate.c, sterror.c, strtoofft.c
I have tested the build on 10.3, and will build on 10.2.8 in the next days.
2004-12-08 18:02:55 -05:00
|
|
|
$(TMP_DIR)/hostares.o \
|
|
|
|
$(TMP_DIR)/hostasyn.o \
|
2003-11-06 02:42:02 -05:00
|
|
|
$(TMP_DIR)/hostip.o \
|
Matt Veenstra:
- removal of getdate.c
- Added hostares.c, hostasyn.c, hostip4.c, hostip6.c, hostsync.c,
hostthre.c, inet_ntop.c, nwlib.c, parsedate.c, sterror.c, strtoofft.c
I have tested the build on 10.3, and will build on 10.2.8 in the next days.
2004-12-08 18:02:55 -05:00
|
|
|
$(TMP_DIR)/hostip4.o \
|
|
|
|
$(TMP_DIR)/hostip6.o \
|
|
|
|
$(TMP_DIR)/hostsyn.o \
|
|
|
|
$(TMP_DIR)/hostthre.o \
|
2003-11-06 02:42:02 -05:00
|
|
|
$(TMP_DIR)/http.o \
|
|
|
|
$(TMP_DIR)/http_chunks.o \
|
|
|
|
$(TMP_DIR)/http_digest.o \
|
|
|
|
$(TMP_DIR)/http_negotiate.o \
|
|
|
|
$(TMP_DIR)/http_ntlm.o \
|
|
|
|
$(TMP_DIR)/if2ip.o \
|
Matt Veenstra:
- removal of getdate.c
- Added hostares.c, hostasyn.c, hostip4.c, hostip6.c, hostsync.c,
hostthre.c, inet_ntop.c, nwlib.c, parsedate.c, sterror.c, strtoofft.c
I have tested the build on 10.3, and will build on 10.2.8 in the next days.
2004-12-08 18:02:55 -05:00
|
|
|
$(TMP_DIR)/inet_ntop.o \
|
2003-11-06 02:42:02 -05:00
|
|
|
$(TMP_DIR)/inet_pton.o \
|
|
|
|
$(TMP_DIR)/krb4.o \
|
|
|
|
$(TMP_DIR)/ldap.o \
|
|
|
|
$(TMP_DIR)/llist.o \
|
|
|
|
$(TMP_DIR)/md5.o \
|
|
|
|
$(TMP_DIR)/memdebug.o \
|
|
|
|
$(TMP_DIR)/mprintf.o \
|
|
|
|
$(TMP_DIR)/multi.o \
|
|
|
|
$(TMP_DIR)/netrc.o \
|
Matt Veenstra:
- removal of getdate.c
- Added hostares.c, hostasyn.c, hostip4.c, hostip6.c, hostsync.c,
hostthre.c, inet_ntop.c, nwlib.c, parsedate.c, sterror.c, strtoofft.c
I have tested the build on 10.3, and will build on 10.2.8 in the next days.
2004-12-08 18:02:55 -05:00
|
|
|
$(TMP_DIR)/parsedate.o \
|
2003-11-06 02:42:02 -05:00
|
|
|
$(TMP_DIR)/progress.o \
|
|
|
|
$(TMP_DIR)/security.o \
|
2006-05-26 18:23:54 -04:00
|
|
|
$(TMP_DIR)/select.o \
|
2003-11-06 02:42:02 -05:00
|
|
|
$(TMP_DIR)/sendf.o \
|
|
|
|
$(TMP_DIR)/share.o \
|
|
|
|
$(TMP_DIR)/speedcheck.o \
|
2005-04-07 16:56:04 -04:00
|
|
|
$(TMP_DIR)/sslgen.o \
|
2003-11-06 02:42:02 -05:00
|
|
|
$(TMP_DIR)/ssluse.o \
|
|
|
|
$(TMP_DIR)/strequal.o \
|
Matt Veenstra:
- removal of getdate.c
- Added hostares.c, hostasyn.c, hostip4.c, hostip6.c, hostsync.c,
hostthre.c, inet_ntop.c, nwlib.c, parsedate.c, sterror.c, strtoofft.c
I have tested the build on 10.3, and will build on 10.2.8 in the next days.
2004-12-08 18:02:55 -05:00
|
|
|
$(TMP_DIR)/strerror.o \
|
2003-11-06 02:42:02 -05:00
|
|
|
$(TMP_DIR)/strtok.o \
|
Matt Veenstra:
- removal of getdate.c
- Added hostares.c, hostasyn.c, hostip4.c, hostip6.c, hostsync.c,
hostthre.c, inet_ntop.c, nwlib.c, parsedate.c, sterror.c, strtoofft.c
I have tested the build on 10.3, and will build on 10.2.8 in the next days.
2004-12-08 18:02:55 -05:00
|
|
|
$(TMP_DIR)/strtoofft.o \
|
2003-11-06 02:42:02 -05:00
|
|
|
$(TMP_DIR)/telnet.o \
|
2006-05-26 18:23:54 -04:00
|
|
|
$(TMP_DIR)/tftp.o \
|
2003-11-06 02:42:02 -05:00
|
|
|
$(TMP_DIR)/timeval.o \
|
|
|
|
$(TMP_DIR)/transfer.o \
|
|
|
|
$(TMP_DIR)/url.o \
|
2006-07-23 08:01:06 -04:00
|
|
|
$(TMP_DIR)/version.o \
|
|
|
|
$(TMP_DIR)/splay.o
|
2003-11-06 02:42:02 -05:00
|
|
|
|
|
|
|
build: $(TMP_DIR) $(LIB_DIR) $(LIB_DIR)/libcurl.framework
|
|
|
|
|
|
|
|
$(TMP_DIR) :
|
|
|
|
mkdir -p $(TMP_DIR)
|
|
|
|
|
|
|
|
$(LIB_DIR) :
|
|
|
|
mkdir -p $(LIB_DIR)
|
|
|
|
|
|
|
|
# This builds the framework structure and links everything properly
|
|
|
|
$(LIB_DIR)/libcurl.framework: $(OBJECTS) $(LIB_DIR)/libcurl.plist
|
|
|
|
mkdir -p $(LIB_DIR)/libcurl.framework/Versions/A/Resources
|
2006-05-26 18:23:54 -04:00
|
|
|
$(ENVP) $(CC) $(LINK_OPTIONS) $(LIBRARIES) $(OBJECTS) \
|
2003-11-06 02:42:02 -05:00
|
|
|
-o $(LIB_DIR)/libcurl.framework/Versions/A/libcurl
|
|
|
|
cp $(LIB_DIR)/libcurl.plist $(LIB_DIR)/libcurl.framework/Versions/A/Resources/Info.plist
|
2006-05-26 18:23:54 -04:00
|
|
|
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*
|
2003-11-06 02:42:02 -05:00
|
|
|
cd $(LIB_DIR)/libcurl.framework; \
|
|
|
|
ln -fs ./Versions/A/libcurl libcurl; \
|
2006-05-26 18:23:54 -04:00
|
|
|
ln -fs ./Versions/A/Resources Resources; \
|
|
|
|
ln -fs ./Versions/A/Headers Headers
|
2003-11-06 02:42:02 -05:00
|
|
|
cd $(LIB_DIR)/libcurl.framework/Versions; \
|
|
|
|
ln -fs ./A Current
|
|
|
|
|
|
|
|
$(OBJECTS) : $(TMP_DIR)/%.o: $(LIB_DIR)/%.c
|
|
|
|
$(CC) $(C_OPTIONS) -c $< -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -fr $(LIB_DIR)/libcurl.framework
|
|
|
|
rm -f $(OBJECTS)
|
|
|
|
|
|
|
|
|
|
|
|
|