# File: Makefile.mac # Target: rgenoudLib # Created: Jago, Dec 2001, Stefano M. Iacus # Updated: Jago, Apr 2002 # # This script assumes that R binary already exists in # the R root folder # # Tested with: # # MPW Shell 3.6d7 # MrC C Compiler 5.0.0d3c1 # Universal Headers 3.4 # CarbonLib 1.4 # MPW release August 2001+Updates DLib = rgenoud MAKEFILE = Makefile.mac ¥MondoBuild¥ = {MAKEFILE} # Make blank to avoid rebuilds when makefile is modified Includes = -i ::::include: ¶ -i ::::macintosh: ¶ Sym-PPC = -sym off PPCCOptions = {Includes} {Sym-PPC} -opt off -includes unix -w 35,2,23,7 -shared_lib_export on -d HAVE_CONFIG_H -d Macintosh ¶ -d TARGET_API_MAC_CARBON=1 -prefix RHeaders.h -align power -enum int -d OPTIM=1 -d NONR=1 ### Library directory ### LibDir = :::::library:{DLib}:libs ### Source Files ### SrcFiles = ¶ change_order.cpp ¶ frange_ran.cpp ¶ math.cpp ¶ operators.cpp ¶ unif.cpp ¶ eval.cpp ¶ genoud.cpp ¶ multiply.cpp ¶ print_format.cpp ¶ evaluate.cpp ¶ gradient.cpp ¶ numerics.cpp ¶ rgenoud.cpp ### Object Files ### ObjFiles-PPC = ¶ change_order.o ¶ frange_ran.o ¶ math.o ¶ operators.o ¶ unif.o ¶ eval.o ¶ genoud.o ¶ multiply.o ¶ print_format.o ¶ evaluate.o ¶ gradient.o ¶ numerics.o ¶ rgenoud.o ### Libraries ### LibFiles-PPC = ¶ "{PPCLibraries}CarbonStdCLib.o" ¶ "{SharedLibraries}CarbonLib" ¶ "{SharedLibraries}StdCLib" ¶ ":::::R" ¶ "{PPCLibraries}PPCCRuntime.o" ### Default Rules ### .o Ä .cpp {¥MondoBuild¥} Mrcpp {depDir}{default}.cpp -o {targDir}{default}.o {PPCCOptions} ### Build Rules ### {DLib}Lib ÄÄ {ObjFiles-PPC} {LibFiles-PPC} {¥MondoBuild¥} #create export table if `Exists :expvar` delete :expvar end catenate Å.x > expvar # checks if modules directory exsists if ! `Exists -d "{LibDir}"` echo "Creating libs directory" "{LibDir}" NewFolder "{LibDir}" end # Builds the library PPCLink ¶ -o {LibDir}:{DLib}Lib ¶ {ObjFiles-PPC} ¶ {LibFiles-PPC} ¶ {Sym-PPC} ¶ -mf -d ¶ -t 'shlb' ¶ -c '????' ¶ -xm s ¶ -@export expvar # Removing mass # Delete Å.x # Delete Å.o # Delete :expvar ### Required Dependencies ### change_order.o Ä change_order.o frange_ran.o Ä frange_ran.o math.o Ä math.o operators.o Ä operators.o unif.o Ä unif.o eval.o Ä eval.o genoud.o Ä genoud.o multiply.o Ä multiply.o print_format.o Ä print_format.o evaluate.o Ä evaluate.o gradient.o Ä gradient.o numerics.o Ä numerics.o rgenoud.o Ä rgenoud.o ### Optional Dependencies ### ### Build this target to generate "include file" dependencies. ### Dependencies Ä $OutOfDate MakeDepend ¶ -append {MAKEFILE} ¶ -ignore "{CIncludes}" ¶ -objdir ":" ¶ -objext .o ¶ {Includes} ¶ {SrcFiles}