-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (22 loc) · 890 Bytes
/
Makefile
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
# You need to change HDF5ROOT to the path where hdf5 is installed.
# If it's installed under /usr or /sw nothing should be necessary
HDF5ROOT=/usr
# The following is necessary with HDF5 1.8.x, and should be harmless otherwise
HDF5CFLAGS=-D H5Gcreate_vers=1 -D H5Dcreate_vers=1
# Add any extra include directories here
INCLUDES=-I${HDF5ROOT}/include -Iinclude -I/sw/include
# Add any extra linker stuff here
LDFLAGS=-L${HDF5ROOT}/lib -L/sw/lib -lhdf5
# Any other compiler flags go here
CXXFLAGS=-W -Wall $(INCLUDES) $(HDF5CFLAGS)
OBJS = xtcpnCCD2hdf5.o XtcIterator.o DetInfo.o TypeId.o ProcInfo.o \
XtcFileIterator.o Src.o TransitionId.o TimeStamp.o Level.o \
Sequence.o ClockTime.o
all: xtcpnCCD2hdf5
xtcpnCCD2hdf5: $(OBJS)
g++ $^ $(LDFLAGS) -o $@
$(OBJS): %.o : %.cc
g++ -c $(CXXFLAGS) $< -o $@
clean:
rm -f $(OBJS) *~ core include/*~ xtcpnCCD2hdf5
.PHONY: clean