1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 15:09:02 +00:00

New macosx build for i386 and 10.5.

This commit is contained in:
david
2011-10-13 05:03:31 +00:00
parent 9b73f3742c
commit d4941d944c

View File

@@ -26,7 +26,7 @@ NDIFF_STAGING_DIR = Ndiff
NPING_BUILD_DIR = nping-build NPING_BUILD_DIR = nping-build
NPING_STAGING_DIR = Nping NPING_STAGING_DIR = Nping
MACPORTS_PREFIX=$(HOME)/macports-10.4u MACPORTS_PREFIX=$(HOME)/macports-10.5
PREFIX = /usr/local PREFIX = /usr/local
PACKAGEMAKER = /Developer/usr/bin/packagemaker PACKAGEMAKER = /Developer/usr/bin/packagemaker
@@ -38,20 +38,18 @@ CONFIGURE_ARGS = --prefix="$(PREFIX)" --with-libdnet=included --with-libpcap=inc
# Flags for building universal binaries. See # Flags for building universal binaries. See
# http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_3.html. # http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_3.html.
UNIVERSAL_CONFIGURE_ARGS = --disable-dependency-tracking UNIVERSAL_CONFIGURE_ARGS = --disable-dependency-tracking
# gcc-4.0 is used to avoid an error with stdarg.h ("No such file or directory") UNIVERSAL_CC = gcc
# when building against the 10.4u SDK on OS X 10.6. UNIVERSAL_CXX = g++
UNIVERSAL_CC = gcc-4.0
UNIVERSAL_CXX = g++-4.0
# Setting ARCHFLAGS separately is required. distutils.util.get_platform # Setting ARCHFLAGS separately is required. distutils.util.get_platform
# sniffs it to determine whether to return a universal architecture # sniffs it to determine whether to return a universal architecture
# ("fat" or "universal") or a single one ("i386" or "ppc"). py2app in # ("fat" or "universal") or a single one ("i386" or "ppc"). py2app in
# turn uses the arch value to decide which of its bootstrappers to # turn uses the arch value to decide which of its bootstrappers to
# install. # install.
UNIVERSAL_ARCHFLAGS = -arch ppc -arch i386 UNIVERSAL_ARCHFLAGS = -arch i386
UNIVERSAL_CPPFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk UNIVERSAL_CPPFLAGS = -isysroot /Developer/SDKs/MacOSX10.5.sdk
UNIVERSAL_CFLAGS = $(UNIVERSAL_CPPFLAGS) -mmacosx-version-min=10.4 $(UNIVERSAL_ARCHFLAGS) UNIVERSAL_CFLAGS = $(UNIVERSAL_CPPFLAGS) -mmacosx-version-min=10.5 $(UNIVERSAL_ARCHFLAGS)
UNIVERSAL_CXXFLAGS = $(UNIVERSAL_CFLAGS) UNIVERSAL_CXXFLAGS = $(UNIVERSAL_CFLAGS)
UNIVERSAL_LDFLAGS = -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 $(UNIVERSAL_ARCHFLAGS) UNIVERSAL_LDFLAGS = -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 $(UNIVERSAL_ARCHFLAGS)
CC = $(UNIVERSAL_CC) CC = $(UNIVERSAL_CC)
CXX = $(UNIVERSAL_CXX) CXX = $(UNIVERSAL_CXX)