~ubuntu-branches/ubuntu/precise/insighttoolkit/precise

« back to all changes in this revision

Viewing changes to Utilities/nifti/utils/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-05-31 12:07:29 UTC
  • mfrom: (3.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080531120729-7g7layn480le43ko
Tags: 3.6.0-3
* debian/patches/gccxml-workaround.patch: New.  Work around gccxml issue
  with #include_next; c.f. http://www.gccxml.org/Bug/view.php?id=7134.  
* debian/patches/gcc43.patch: include <cstring> in itkNeighbourhood.h.
  This only showed up in the tcl wrapping step.

* Above two entries fix FTBFS for GCC 4.3-based systems.
  Closes: #478500.

* debian/patches/sharedforward.patch: New.  Ensure that linux/sparc
  systems are not also configured as a SUN sparc system, which requires
  SUN header sys/isa_defs.h.  Closes: #478940, #483312.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
FSLIO_LIBS      =       -L../lib -lfslio
9
9
NIFTI_LIBS      =       -L../lib -lniftiio
 
10
NIFTICDF_LIBS   =       -L../lib -lnifticdf
10
11
ZNZ_LIBS        =       -L/usr/lib -L../lib -lznz -lm -lz
11
12
 
12
13
 
13
14
 
14
 
## SGI 32bit
15
 
ifeq ($(ARCH),SGI)
 
15
##############################################################
 
16
# platform specific redefines (to use, set ARCH appropriately)
 
17
 
 
18
## ARCH = X86_64
 
19
 
 
20
ifeq ($(ARCH),SGI) ## SGI 32bit
16
21
ZNZ_INCS        =       -I/usr/freeware/include
17
22
ZNZ_LIBS        =       -L/usr/freeware/lib32 -L../lib -lznz -lm -lz
18
 
endif
19
 
 
20
 
 
21
 
 
22
 
## Redhat Fedora Linux
23
 
##ZNZ_INCS      =       -I/usr/include
24
 
##ZNZ_LIBS      =       -L/usr/lib -L../lib -lznz -lm -lz
 
23
else
 
24
ifeq ($(ARCH),I386) ## 32-bit Linux
 
25
ZNZ_INCS        =       -I/usr/include
 
26
ZNZ_LIBS        =       -L/usr/lib -L../lib -lznz -lm -lz
 
27
else
 
28
ifeq ($(ARCH),X86_64) ## 64-bit Linux
 
29
ZNZ_INCS        =
 
30
ZNZ_LIBS        =       -L../lib -lznz -lm -lz
 
31
endif
 
32
endif
 
33
endif
 
34
 
 
35
####################################################
25
36
 
26
37
 
27
38
UTILS_PROGS     =       nifti_stats nifti_tool nifti1_test
35
46
 
36
47
 
37
48
nifti_stats: nifti_stats.c
38
 
        $(CC) $(CFLAGS) -o nifti_stats nifti_stats.c $(NIFTI_INCS) $(ZNZ_INCS) $(NIFTI_LIBS) $(ZNZ_LIBS)
 
49
        $(CC) $(CFLAGS) -o nifti_stats nifti_stats.c $(NIFTI_INCS) $(ZNZ_INCS) $(NIFTICDF_LIBS) $(NIFTI_LIBS) $(ZNZ_LIBS)
39
50
 
40
51
nifti_tool: nifti_tool.c nifti_tool.h
41
52
        $(CC) $(CFLAGS) -Wall -o nifti_tool nifti_tool.c $(NIFTI_INCS) $(ZNZ_INCS) $(NIFTI_LIBS) $(ZNZ_LIBS)