summaryrefslogtreecommitdiffstats
path: root/test/Makefile.in
blob: 66bd6462e4c8f9010edea16eb6a383564428bbe8 (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
# HDF5 Library Test Makefile(.in)			       -*- makefile -*-
#
# Copyright (C) 1997 National Center for Supercomputing Applications.
#                    All rights reserved.
#
# 
@COMMENCE@

# Add include directory to the C preprocessor flags.
CPPFLAGS=-I. -I../src @CPPFLAGS@

# These are our main targets. They should be listed in the order to be
# executed, generally most specific tests to least specific tests.
PROGS=testhdf5  hyperslab istore dtypes dsets
TESTS=$(PROGS)

# Source and object files for programs...  The PROG_SRC list contains all the
# source files and is used for things like dependencies, archiving, etc.  The
# other source lists are for the individual tests, the files of which may
# overlap with other tests.
PROG_SRC=testhdf5.c tfile.c theap.c tmeta.c tohdr.c tstab.c th5p.c dtypes.c  \
         hyperslab.c istore.c dsets.c
PROG_OBJ=$(PROG_SRC:.c=.o)

TESTHDF5_SRC=testhdf5.c tfile.c theap.c tmeta.c tohdr.c tstab.c th5p.c
TESTHDF5_OBJ=$(TESTHDF5_SRC:.c=.o)

DSETS_SRC=dsets.c
DSETS_OBJ=$(DSETS_SRC:.c=.o)

DTYPES_SRC=dtypes.c
DTYPES_OBJ=$(DTYPES_SRC:.c=.o)

HYPERSLAB_SRC=hyperslab.c
HYPERSLAB_OBJ=$(HYPERSLAB_SRC:.c=.o)

ISTORE_SRC=istore.c
ISTORE_OBJ=$(ISTORE_SRC:.c=.o)

# Private header files (not to be installed)...
PRIVATE_HDR=testhdf5.h

# How to build the programs...
testhdf5: $(TESTHDF5_OBJ) ../src/libhdf5.a
	$(CC) $(CFLAGS) -o $@ $(TESTHDF5_OBJ) ../src/libhdf5.a $(LIBS)

dsets: $(DSETS_OBJ) ../src/libhdf5.a
	$(CC) $(CFLAGS) -o $@ $(DSETS_OBJ) ../src/libhdf5.a $(LIBS)

dtypes: $(DTYPES_OBJ) ../src/libhdf5.a
	$(CC) $(CFLAGS) -o $@ $(DTYPES_OBJ) ../src/libhdf5.a $(LIBS)

hyperslab: $(HYPERSLAB_OBJ) ../src/libhdf5.a
	$(CC) $(CFLAGS) -o $@ $(HYPERSLAB_OBJ) ../src/libhdf5.a $(LIBS)

istore: $(ISTORE_OBJ) ../src/libhdf5.a
	$(CC) $(CFLAGS) -o $@ $(ISTORE_OBJ) ../src/libhdf5.a $(LIBS)

@CONCLUDE@