# This Makefile is for Mac OSX 10.4.x (Tiger), 64-bit G5 version # based on Bob Cox's Makefile for 10.4 Tiger. # # 64-bit G5 version modifications by Ben Singer # of the CSBMB at Princeton University, July 6 2005 # You need to install a 64-bit version of X11, zlib, lesstif or openmotif before using this. # I had problems with openmotif under ppc64, better luck with lesstif. # See external_libs_ppc64 for more details. # # Building results in a highly experimental, untested version of AFNI. SUMA doesn't work. The # source code will need to be updated to deal with 64-bit memory addresses. # GCC warnings like "cast to pointer from integer of different size" hint at this. # Still, some things might work. My main goal was 3dDeconvolve, since big datasets cause # malloc errors under the normal 32-bit version. We are testing 3dDeconvolve64 at CSBMB. # # CHANGE ME to where your 64-bit X11, zlib, and lesstif are located PKG = /usr/csbmb/pkg ZLIB = $(PKG)/ZLIB64/zlib X11R6 = $(PKG)/XORG64 MOTIF = $(PKG)/LESSTIF64/lesstif USE_ZLIB = -DHAVE_ZLIB LZLIB = -L$(ZLIB)/lib -lz CCDEBS = -DAFNI_DEBUG -DIMSEQ_DEBUG -DDISPLAY_DEBUG -DTHD_DEBUG CEXTRA = -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -no-cpp-precomp -DDONT_USE_MCW_MALLOC CC = cc -O2 -arch ppc64 -ffast-math -DDARWIN $(CEXTRA) CCVOL = cc -O2 -arch ppc64 -ffast-math -DDARWIN $(CEXTRA) CCFAST = cc -O3 -arch ppc64 -ffast-math -DDARWIN $(CEXTRA) CCMIN = cc -arch ppc64 CCD = $(CC) $(CCDEBS) IFLAGS = -I. -I$(X11R6)/include -I$(ZLIB)/include -I$(MOTIF)/include LFLAGS = -L. -L$(X11R6)/lib -L$(ZLIB)/lib -L$(MOTIF)/lib -Wl,-x CCSVD = $(CCFAST) PLUGIN_SUFFIX = so PLUGIN_LFLAGS = -arch ppc64 -bundle -flat_namespace -undefined suppress -Wl,-x PLUGIN_CC = $(CC) -dynamic -fno-common PLFLAGS = -dynamic $(LFLAGS) # dotpr and vsub not in 64-bit Accelerate? getting undefined symbols #SPECIAL = -faltivec -maltivec -framework Accelerate -DUSE_ALTIVEC SPECIAL = -faltivec -maltivec -framework Accelerate AR = /usr/bin/ar RANLIB = /usr/bin/ranlib TAR = /usr/bin/tar MKDIR = /bin/mkdir GZIP = /usr/bin/gzip LD = cc RM = /bin/rm -f MV = /bin/mv -f CP = /bin/cp -f LINT = /usr/bin/lint -a -b -u -v -x $(IFLAGS) $(CCDEFS) INSTALLDIR = ./macosx_10.4_ppc64 LIBDIR = $(INSTALLDIR) SHOWOFF = -DSHOWOFF=macosx_10.4_ppc64 # don't want to compile suma when doing 'make install' for afni... #INSTALL_PREREQ = suma_gts INSTALL_PREREQ = LIBDL = libdl.a # for dynamic linking LLIBS = -lmri -lXm -lXp -lXpm -lXext -lXt -lX11 $(LZLIB) -lm -lmri -ldl -lc # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv # For suma SUMA_INCLUDE_PATH = -I$(X11R6)/include -I$(MOTIF)/include -I./ -I../ -I../niml/ -Igts/src SUMA_LINK_PATH = -L$(X11R6)/lib -L$(MOTIF)/lib -L../ # -lglib removed-- does it matter on macos? SUMA_LINK_LIB = -lGLw -lGLU -lGL -lXmu -lXm -lXp -lXt -lXext -lX11 -lmri $(LZLIB) -lm -lmx -bind_at_load SUMA_MAKEFILE_NAME = SUMA_Makefile SUMA_BIN_ARCHIVE = SUMA_MacOSX.tar # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ############################################################### MAKE = make include Makefile.INCLUDE