aboutsummaryrefslogtreecommitdiff
path: root/src/GNUmakefile
blob: b9fcc494b03046645086dbdc722bccb7a278aea2 (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
#
#  FlexIO Interface to the Makefile Configuration System, as
#  described and available at
#
#	http://amira.zib.de/make/
#
#   $Revision: 1.1.1.1 $
#   $Date: 2000-09-13 13:49:09 $
#   $Log: not supported by cvs2svn $
#   Revision 1.4  2000/05/29 14:06:11  werner
#   Using VPATH instead of PWD is much saver.
#
#   Revision 1.3  2000/05/25 16:20:38  werner
#   HDF4 interface enabled
#
#   Revision 1.2  2000/05/17 10:45:38  werner
#   GNUmakefile falls back to include the Makefile in the same directory, if
#   no ../GNUmakefile.rules exists.
#
#   Revision 1.1  2000/05/10 11:36:52  werner
#   A GNUmakefile to enable compilation of FlexIO directly in the context of
#   Amira. Please cry if this leads to problems; if so, we have to find some
#   more complicated mechanism...
#
#
#

OBJECTS = IO.$O IEEEIO.$O FlexIO.$O

HDF4OBJECTS = HDFIO.$O
HDF5OBJECTS = H5IO.$O 

AMROBJECTS = AmrGridReader.$O AmrUcdFileReader.$O \
        AmrFileReader.$O Bounds.$O \
        AmrUcdGridHierarchy.$O AMRwriter.$O \
	Writer.$O

SOCKOBJECTS = SockIOreader.$O SockIOwriter.$O
MPOBJECTS = MPIO.$O MPIutils.$O

OBJS    = $(OBJECTS) $(AMROBJECTS) $(HDF5OBJECTS_${HDF5}) $(HDF4OBJECTS_${HDF4})

HDF4OBJECTS_true=$(HDF4OBJECTS)
HDF5OBJECTS_true=$(HDF5OBJECTS)

TARGET  = FlexIO
PACKAGE = $(TARGET)

all.dtor=remove-config visible

RULEFILE = $(shell if [ -r $(VPATH)../GNUmakefile.rules ] ; then echo $(VPATH)../GNUmakefile.rules ; else echo Makefile ; fi)

include $(RULEFILE)

CXXFLAGS += $(hdf5_FLAGS) $(hdf4_FLAGS) -I$(VPATH)./
LIBS     += $(hdf5_LIB)   $(hdf4_LIB) -lm

#
# Add a variable to the makefile configuration
#
TARGET_FLAGS=-I$$(MAKE_LOCAL)/external/FlexIO -I$$(MAKE_ROOT)/external/FlexIO $(hdf5_FLAGS) $(hdf4_FLAGS)