# File: Makefile.mac # Target: wavethreshLib # Created: Jago, Nov 2002, Stefano M. Iacus # # This script assumes that R binary already exists in # folder 'src/macintosh/bin' # # 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 = wavethresh 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 -shared_lib_export on -d HAVE_CONFIG_H -d Macintosh ¶ -d TARGET_API_MAC_CARBON=1 -prefix RHeaders.h -align power -enum int ### Library directory ### LibDir = :::::library:{DLib}:libs ### Source Files ### SrcFiles = ¶ ImageDecomposeStep.c ¶ StoIRS.c ¶ convolve.c ¶ waverecons.c ¶ StoIDS.c ¶ conbar.c ¶ wavedecomp.c ### Object Files ### ObjFiles-PPC = ¶ ImageDecomposeStep.o ¶ StoIRS.o ¶ convolve.o ¶ waverecons.o ¶ StoIDS.o ¶ conbar.o ¶ wavedecomp.o ### Libraries ### LibFiles-PPC = ¶ "{PPCLibraries}CarbonStdCLib.o" ¶ "{SharedLibraries}CarbonLib" ¶ "{SharedLibraries}StdCLib" ¶ ":::::R" ¶ "{PPCLibraries}PPCCRuntime.o" ### Default Rules ### .o Ä .c {¥MondoBuild¥} {PPCC} {depDir}{default}.c -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 ### Required Dependencies ### ImageDecomposeStep.o Ä ImageDecomposeStep.c StoIRS.o Ä StoIRS.c convolve.o Ä convolve.c waverecons.o Ä waverecons.c StoIDS.o Ä StoIDS.c conbar.o Ä conbar.c wavedecomp.o Ä wavedecomp.c ### Optional Dependencies ### ### Build this target to generate "include file" dependencies. ### Dependencies Ä $OutOfDate MakeDepend ¶ -append {MAKEFILE} ¶ -ignore "{CIncludes}" ¶ -objdir ":" ¶ -objext .o ¶ {Includes} ¶ {SrcFiles}