1################################################################## 2# 3# This Makefile is tested on RedHat Linux AS 3.0 with GCC 3.4.2, 4# ia64 (Itanium 2). At the time of this writing (12-9-2004), 5# gcc produced code no faster than a 32-bit Athlon. To utilize the 6# full capabilities of the Itanium, the Intel compiler "icc" is 7# recommended, as it produces code about twice as fast as gcc. 8# The speed we obtained with icc, however, are still only about half 9# that of AMD64 (Athlon 64 and Opteron) and Macintosh G5 processors. 10# 11# Contributed by: 12# Jason W. Bacon 13# Medical College of Wisconsin 14 15# CPROF = -pg -g 16 17CCDEBS = -DAFNI_DEBUG -DIMSEQ_DEBUG -DDISPLAY_DEBUG -DTHD_DEBUG 18CEXTRA = -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE $(CPROF) 19 20CC = /usr/bin/gcc -O2 -fPIC -DREAD_WRITE_64 -DLINUX2 -DNO_GAMMA $(CEXTRA) 21CCVOL = /usr/bin/gcc -O2 -fPIC -DREAD_WRITE_64 -DLINUX2 -DNO_GAMMA $(CEXTRA) 22CCFAST = /usr/bin/gcc -O2 -fPIC -DREAD_WRITE_64 -DLINUX2 -DNO_GAMMA $(CEXTRA) 23 24# The following line includes compiling for the SSE operations. 25# However, I found that it actually makes things worse in some test code. 26# Your mileage may vary. 27 28# CCFAST = /usr/bin/gcc -O3 -ffast-math -fPIC -msse -mfpmath=sse -DREAD_WRITE_64 -DLINUX2 -DNO_GAMMA $(CEXTRA) 29 30CCMIN = /usr/bin/gcc -fPIC $(CPROF) 31CCD = $(CC) $(CCDEBS) 32CCOLD = $(CC) 33 34IFLAGS = -I. -I/usr/X11R6/include 35LFLAGS = -L. -L/usr/X11R6/lib 36 37CCSVD = /usr/bin/gcc -O0 -fPIC 38 39 40PLUGIN_SUFFIX = so 41PLUGIN_LFLAGS = -shared 42PLUGIN_CC = $(CC) 43PLFLAGS = -rdynamic -L. -L/usr/X11R6/lib 44 45SYSTEM_NAME = linux_ia64 46SHOWOFF = -DSHOWOFF=$(SYSTEM_NAME) 47 48AR = /usr/bin/ar 49RANLIB = /usr/bin/ranlib 50TAR = /bin/tar 51MKDIR = /bin/mkdir 52GZIP = /bin/gzip 53LD = /usr/bin/gcc $(CPROF) 54 55RM = /bin/rm -f 56MV = /bin/mv -f 57CP = /bin/cp -f 58 59LINT = /usr/bin/lint -a -b -u -v -x $(IFLAGS) $(CCDEFS) 60 61# INSTALDIR should match the extension on the Makefile name 62INSTALLDIR = ./linux_ia64 63LIBDIR = $(INSTALLDIR) 64 65INSTALL_PREREQ = suma 66 67# for dynamic linking 68 69# LLIBS = -lmri -lf2c -lXm -lXp -lXpm -lXext -lXmu -lXt -lX11 -lm -ldl -lc 70 71# for static linking to Motif, dynamic to all else 72 73LLIBS = -lmri -lf2c /usr/X11R6/lib/libXm.a -lXm -lXp -lXpm -lXext -lXmu -lXt -lSM -lICE -lX11 -lm -ldl -lc 74 75# for static linking, as far as possible 76 77# LLIBS = -lmri -lf2c -ldl \ 78# /usr/X11R6/lib/libXm.a \ 79# /usr/X11R6/lib/libXpm.a \ 80# /usr/X11R6/lib/libXext.a \ 81# /usr/X11R6/lib/libXmu.a \ 82# /usr/X11R6/lib/libXt.a \ 83# /usr/X11R6/lib/libSM.a \ 84# /usr/X11R6/lib/libICE.a \ 85# /usr/X11R6/lib/libX11.a \ 86# /usr/lib/libm.a \ 87# /usr/lib/libc.a 88 89# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 90# For suma (NO STATIC LINKING OF GL libs) 91SUMA_INCLUDE_PATH = -I/usr/X11R6/include -I./ -I../ -I../niml/ -Igts/src 92SUMA_LINK_PATH = -L/usr/lib -L/usr/X11R6/lib -L../ 93#use -lGLw if you have libGLw.a or libGLw.so* or 94# -lMesaGLw if you have Mesa's version (libMesaGLw*) of libGLw 95SUMA_LINK_LIB = -lXm -lGLw -lGLU -lGL -lXmu -lXp -lXt -lXext -lX11 -lm 96SUMA_MAKEFILE_NAME = SUMA_Makefile 97SUMA_BIN_ARCHIVE = SUMA_Linux.tar 98SUMA_MDEFS = -DSUMA_GL_NO_CHECK_FRAME_BUFFER 99# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 100 101############################################################### 102 103MAKE = make 104include Makefile.INCLUDE 105 106