blob: ec8bcf5ff051254d772f8ff21c0a5e5a2063291a (
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
|
### Name of target
TARGET = testhdf5
#
# PART 2: various choices
#
### -DDEBUG Debugging options on
DEFS = -I../src
################################################
## no changes required below this line ##
################################################
INCL = ../src/hdf5.h testhdf5.h
OBJ = testhdf5.o tmeta.o tfile.o theap.o
LIBS = ../src/libhdf5.a
$(TARGET): $(OBJ) $(LIBS)
$(CC) -o $(TARGET) $(OBJ) $(LIBS)
all: $(TARGET)
test: $(TARGET)
./$(TARGET)
debug: $(OBJ)
purify $(CC) -o $(TARGET) $(OBJ) $(LIBS)
clean:
-rm -f *.o core *.core $(TARGET)
-rm -f *.bak *.h5
###########################################################################
testhdf5.o: testhdf5.c $(INCL)
$(CC) $(CFLAGS) $(DEFS) testhdf5.c
tmeta.o: tmeta.c $(INCL)
$(CC) $(CFLAGS) $(DEFS) tmeta.c
tfile.o: tfile.c $(INCL)
$(CC) $(CFLAGS) $(DEFS) tfile.c
theap.o: theap.c $(INCL)
$(CC) $(CFLAGS) $(DEFS) theap.c
|