unxmacc.mk (0bc66fd0) | unxmacc.mk (1e1ac450) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 29 unchanged lines hidden (view full) --- 38 39# MAXOSX_DEPLOYMENT_TARGET : The minimum version required to run the build result 40# (safer/easier than dealing with the MAC_OS_X_VERSION_MAX_ALLOWED macro) 41# http://developer.apple.com/technotes/tn2002/tn2064.html 42# done in setsolar/configure now. left here for documentation 43#MACOSX_DEPLOYMENT_TARGET=10.7 44#.EXPORT: MACOSX_DEPLOYMENT_TARGET 45CDEFS+=-DQUARTZ | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 29 unchanged lines hidden (view full) --- 38 39# MAXOSX_DEPLOYMENT_TARGET : The minimum version required to run the build result 40# (safer/easier than dealing with the MAC_OS_X_VERSION_MAX_ALLOWED macro) 41# http://developer.apple.com/technotes/tn2002/tn2064.html 42# done in setsolar/configure now. left here for documentation 43#MACOSX_DEPLOYMENT_TARGET=10.7 44#.EXPORT: MACOSX_DEPLOYMENT_TARGET 45CDEFS+=-DQUARTZ |
46EXTRA_CDEFS*=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk | 46EXTRA_CDEFS*=-isysroot $(SDK_PATH) |
47 48# Name of library where static data members are initialized 49# STATICLIBNAME=static$(DLLPOSTFIX) 50# STATICLIB=-l$(STATICLIBNAME) 51 52# enable visibility define in "sal/types.h" 53.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" 54 CDEFS += -DHAVE_GCC_VISIBILITY_FEATURE --- 109 unchanged lines hidden (view full) --- 164# --------------------------------- 165# Link stage flags 166# --------------------------------- 167 168LINK*=$(CXX) 169LINKC*=$(CC) 170 171###LINKFLAGSDEFS*=-Wl,-multiply_defined,suppress | 47 48# Name of library where static data members are initialized 49# STATICLIBNAME=static$(DLLPOSTFIX) 50# STATICLIB=-l$(STATICLIBNAME) 51 52# enable visibility define in "sal/types.h" 53.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" 54 CDEFS += -DHAVE_GCC_VISIBILITY_FEATURE --- 109 unchanged lines hidden (view full) --- 164# --------------------------------- 165# Link stage flags 166# --------------------------------- 167 168LINK*=$(CXX) 169LINKC*=$(CC) 170 171###LINKFLAGSDEFS*=-Wl,-multiply_defined,suppress |
172# assure backwards-compatibility 173###EXTRA_LINKFLAGS*=-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk 174EXTRA_LINKFLAGS*=-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk | 172EXTRA_LINKFLAGS*=-L$(SDK_PATH) |
175# Very long install_names are needed so that install_name_tool -change later on 176# does not complain that "larger updated load commands do not fit:" 177LINKFLAGSRUNPATH_URELIB=-install_name '@__________________________________________________URELIB/$(@:f)' 178LINKFLAGSRUNPATH_UREBIN= 179LINKFLAGSRUNPATH_OOO=-install_name '@__________________________________________________OOO/$(@:f)' 180LINKFLAGSRUNPATH_SDK= 181LINKFLAGSRUNPATH_BRAND= 182LINKFLAGSRUNPATH_OXT= 183LINKFLAGSRUNPATH_BOXT= 184LINKFLAGSRUNPATH_NONE=-install_name '@__________________________________________________NONE/$(@:f)' 185LINKFLAGS=$(LINKFLAGSDEFS) 186 | 173# Very long install_names are needed so that install_name_tool -change later on 174# does not complain that "larger updated load commands do not fit:" 175LINKFLAGSRUNPATH_URELIB=-install_name '@__________________________________________________URELIB/$(@:f)' 176LINKFLAGSRUNPATH_UREBIN= 177LINKFLAGSRUNPATH_OOO=-install_name '@__________________________________________________OOO/$(@:f)' 178LINKFLAGSRUNPATH_SDK= 179LINKFLAGSRUNPATH_BRAND= 180LINKFLAGSRUNPATH_OXT= 181LINKFLAGSRUNPATH_BOXT= 182LINKFLAGSRUNPATH_NONE=-install_name '@__________________________________________________NONE/$(@:f)' 183LINKFLAGS=$(LINKFLAGSDEFS) 184 |
187# [ed] 5/14/02 If we're building for aqua, add in the objc runtime library into our link line 188.IF "$(GUIBASE)" == "aqua" 189 LINKFLAGS+=-lobjc 190 # Sometimes we still use files that would be in a GUIBASE="unx" specific directory 191 # because they really aren't GUIBASE specific, so we've got to account for that here. 192 INCGUI+= -I$(PRJ)/unx/inc 193.ENDIF | 185LINKFLAGS+=-lobjc 186LINKFLAGS+=-lc++ |
194 195#special settings form environment 196LINKFLAGS+=$(EXTRA_LINKFLAGS) 197 198# Random link flags dealing with different cases of linking 199 200LINKFLAGSAPPGUI=-bind_at_load 201LINKFLAGSSHLGUI=-dynamiclib -single_module --- 17 unchanged lines hidden (view full) --- 219# Precompiled header file extension 220PCHPOST=.gch 221 222#LINKVERSIONMAPFLAG=-Xlinker -map -Xlinker 223LINKVERSIONMAPFLAG=-Wl,-map -Wl, 224 225SONAME_SWITCH=-Wl,-h 226 | 187 188#special settings form environment 189LINKFLAGS+=$(EXTRA_LINKFLAGS) 190 191# Random link flags dealing with different cases of linking 192 193LINKFLAGSAPPGUI=-bind_at_load 194LINKFLAGSSHLGUI=-dynamiclib -single_module --- 17 unchanged lines hidden (view full) --- 212# Precompiled header file extension 213PCHPOST=.gch 214 215#LINKVERSIONMAPFLAG=-Xlinker -map -Xlinker 216LINKVERSIONMAPFLAG=-Wl,-map -Wl, 217 218SONAME_SWITCH=-Wl,-h 219 |
227### STDLIBCPP=-stdlib=libc++ 228STDLIBCPP=-lc++ | |
229 230STDOBJVCL=$(L)/salmain.o 231STDOBJGUI= 232STDSLOGUI= 233STDOBJCUI= 234STDSLOCUI= 235 | 220 221STDOBJVCL=$(L)/salmain.o 222STDOBJGUI= 223STDSLOGUI= 224STDOBJCUI= 225STDSLOCUI= 226 |
236.IF "$(GUIBASE)" == "aqua" 237 STDLIBCUIMT=CPPRUNTIME -lm 238 STDLIBGUIMT=-framework Carbon -framework Cocoa -lpthread CPPRUNTIME -lm 239 STDSHLCUIMT=-lpthread CPPRUNTIME -lm 240 STDSHLGUIMT=-framework Carbon -framework CoreFoundation -framework Cocoa -lpthread CPPRUNTIME -lm 241.ELSE 242 STDLIBCUIMT= CPPRUNTIME -lm 243 STDLIBGUIMT=-lX11 -lpthread CPPRUNTIME -lm 244 STDSHLCUIMT=-lpthread CPPRUNTIME -lm 245 STDSHLGUIMT=-lX11 -lXext -lpthread CPPRUNTIME -lm -framework CoreFoundation 246.ENDIF | 227#STDLIBCUIMT=CPPRUNTIME -lm 228#STDLIBGUIMT=-framework Carbon -framework Cocoa -lpthread CPPRUNTIME -lm 229STDSHLCUIMT=-lpthread CPPRUNTIME -lm 230STDSHLGUIMT=-framework Carbon -framework CoreFoundation -framework Cocoa -lpthread CPPRUNTIME -lm |
247 248LIBMGR=ar 249LIBFLAGS=-r 250 251IMPLIB= 252IMPLIBFLAGS= 253 254MAPSYM= 255MAPSYMFLAGS= 256 257RC=irc 258RCFLAGS=-fo$@ $(RCFILES) 259RCLINK= 260RCLINKFLAGS= 261RCSETVERSION= 262 263OOO_LIBRARY_PATH_VAR = DYLD_LIBRARY_PATH | 231 232LIBMGR=ar 233LIBFLAGS=-r 234 235IMPLIB= 236IMPLIBFLAGS= 237 238MAPSYM= 239MAPSYMFLAGS= 240 241RC=irc 242RCFLAGS=-fo$@ $(RCFILES) 243RCLINK= 244RCLINKFLAGS= 245RCSETVERSION= 246 247OOO_LIBRARY_PATH_VAR = DYLD_LIBRARY_PATH |