1#ident "@(#)power-macintosh-darwin-gcc.rul 1.20 21/04/28 " 2########################################################################### 3# Written 1996-2014 by J. Schilling 4########################################################################### 5# 6# Platform dependent MACROS for Darwin-1.2 ff. (Apple MacOS X) PPC (GCC) 7# 8########################################################################### 9# Copyright (c) J. Schilling 10########################################################################### 11# The contents of this file are subject to the terms of the 12# Common Development and Distribution License, Version 1.0 only 13# (the "License"). You may not use this file except in compliance 14# with the License. 15# 16# See the file CDDL.Schily.txt in this distribution for details. 17# A copy of the CDDL is also available via the Internet at 18# http://www.opensource.org/licenses/cddl1.txt 19# 20# When distributing Covered Code, include this CDDL HEADER in each 21# file and include the License file CDDL.Schily.txt from this distribution. 22########################################################################### 23include $(SRCROOT)/$(RULESDIR)/rules.prg 24########################################################################### 25include $(SRCROOT)/$(RULESDIR)/cc-$(C_ARCH).rul 26 27OSDEFS += 28 29KDEFINES= -DKERNEL -D_KERNEL 30 31COPTDYN= -fPIC 32C++OPTDYN= -fPIC 33 34LIB_PREFIX= lib 35LIB_SUFFIX= .a 36SHL_SUFFIX= .dylib 37 38LIB_SOCKET= 39LIB_MATH= -lm 40LIB_KVM= 41 42#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) 43LDFRAMEWORKS= -framework IOKit -framework CoreFoundation 44LDOPTS= $(LIBS_PATH) $(LDPATH) $(LDFRAMEWORKS) 45LDOPTDYN= -install_name $(INSBASE)/lib/$(TARGET) 46LDLIBDYN= -lgcc_s.1 47LNDYNLIB= $(NOECHO) 48 49DYNLD= $(NOECHO)echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic 50DYNLDC++ = $(NOECHO)echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic 51RANLIB= $(NOECHO)echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib 52 53# 54# lorder seems not to work on some versions because Apple installed 55# a broken /bin/sh that is not POSIX cimpliant an will not 56# be able to run the /usr/bin/lorder script. The error messages are: 57# type: not found 58# type: not found 59# lorder: nm: not found 60# ... disable it 61# 62LORDER= echo 63TSORT= cat 64