blob: fbd29dd9a198e8afe935ac4a2c8aa01fbbbf464a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
##################################################################
#
# This Makefile is tested with FreeBSD 5.x
#
# Contributed by:
# Jason W. Bacon
# Medical College of Wisconsin
# bacon@smithers.neuro.mcw.edu
#
# Before compiling afni, install the following packages:
#
# open-motif
#
# To compile SUMA you will also need the following packages:
#
# libiconv
# gettext
# gmake
#
# Note: SUMA has display problems on FreeBSD 4.8 and below that I
# have not found time to resolve. I believe they are related
# to the version of the GL libraries that ship with 4.x.
#
# SUMA works fine under FreeBSD 4.9 with GeForce drivers installed
# and under FreeBSD 5.1.
#
# Note: The SUMA build process (as of Aug, 2003) requires GNU make,
# which is /usr/local/bin/gmake on BSD systems.
# Be sure the MAKE macro below is set to gmake.
#
# Note: Compilation of netcdf-3.5.0 may fail due to m4's lack of
# support for the -B option. Remove the -B10000 flag from
# netcdf-3.5.0/src/configure BEFORE running make to avoid
# this error. ( Or force configure to use gm4 by reversing
# the order of "m4 gm4" to "gm4 m4" everywhere in the script }
# This problem has been reported to the netcdf development team.
# It seems to have been resolved as of the June, 2003 afni
# source distribution.
#
USE_ZLIB = -DHAVE_ZLIB
LZLIB = -lz
CC? = cc
LD? = ${CC}
CCDEBS = -DAFNI_DEBUG -DIMSEQ_DEBUG -DDISPLAY_DEBUG -DTHD_DEBUG
CEXTRA = -DFreeBSD -DNO_GAMMA -DUSE_TRACING -DHAVE_XDBE -DSUMA_MOTIF_GLXAREA
ifeq (${ARCH}, amd64)
CEXTRA += -DPIC -fPIC
endif
ifeq (${ARCH}, ia64)
CEXTRA += -DPIC -fPIC
endif
CFLAGS += ${CEXTRA}
CC += ${CFLAGS}
CCVOL = ${CC}
CCFAST = ${CC} -O3
CCMIN = ${CC}
CCD = ${CC} ${CCDEBS}
CCSVD = ${CC} -O0
IFLAGS = -I. -I${X11BASE}/include -I/usr/local/include
LFLAGS = -s -L. -L${X11BASE}/lib
MAKE = gmake
PLUGIN_SUFFIX = so
PLUGIN_LFLAGS = -shared
PLUGIN_CC = ${CC}
PLFLAGS = -s -rdynamic -L. -L${X11BASE}/lib
AR = /usr/bin/ar
RANLIB = /usr/bin/ranlib
TAR = /usr/bin/tar
MKDIR = /bin/mkdir
TAPE = /dev/sa0
GZIP = /bin/gzip
RM = /bin/rm -f
MV = /bin/mv -f
CP = /bin/cp -f
LINT = /usr/bin/lint -a -b -u -v -x ${IFLAGS} ${CCDEFS}
INSTALLDIR = ./BSD
LIBDIR = ${INSTALLDIR}
# for dynamic linking
LLIBS = -lmri -lXm -lXp -lXpm -lXext -lXmu -lXt -lX11 -lm $(LZLIB)
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# For suma (NO STATIC LINKING OF GL libs)
SUMA_INCLUDE_PATH = -I${X11BASE}/include -I/usr/local/include -I./ -I../ -I../niml/ -Igts/src
SUMA_LINK_PATH = -L/usr/lib -L${X11BASE}/lib -L../
#use -lGLw if you have libGLw.a or libGLw.so* or
# -lMesaGLw if you have Mesa's version (libMesaGLw*) of libGLw
SUMA_LINK_LIB = -lXm -lGLw -lGLU -lGL -lXmu -lXp -lXt -lXext -lX11 -lm $(LZLIB)
SUMA_MAKEFILE_NAME = SUMA_Makefile
SUMA_BIN_ARCHIVE = SUMA_FreeBSD.tar
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
###############################################################
include Makefile.INCLUDE
|