From 3b587676efe37dd633d1b095d5c7740f3916bcc2 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 22 Apr 2010 11:47:04 +0000 Subject: [PATCH] moved --- .gitattributes | 1 + src/C/Makefile.am | 89 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 src/C/Makefile.am diff --git a/.gitattributes b/.gitattributes index ca2c8f9..31f0405 100644 --- a/.gitattributes +++ b/.gitattributes @@ -387,6 +387,7 @@ src/C/H5Part.c -text src/C/H5Part.h -text src/C/H5_inquiry.c -text src/C/H5_inquiry.h -text +src/C/Makefile.am -text src/Fortran/H5BlockF.c -text src/Fortran/H5BlockF90.inc -text src/Fortran/H5PartF.c -text diff --git a/src/C/Makefile.am b/src/C/Makefile.am new file mode 100644 index 0000000..412a1d1 --- /dev/null +++ b/src/C/Makefile.am @@ -0,0 +1,89 @@ +# src level Makefile.am + +# PATH SETTING (IMPORTED FROM CONFIGURE) +HDF5ROOT = @HDF5ROOT@ + +# COMPILERS +CC = @CC@ + +#INCLUDES +HDFINC = -I$(HDF5ROOT)/include +MPIINC = @MPIINC@ + +INC = $(HDFINC) ${MPIINC} -I./h5 + +# H5Part header file location +H5PINC = -I@prefix@/include + +# COMPILER FLAGS +CFLAGS = @CFLAGS@ ${INC} + +# H5Part compiled library location +H5PLIB = -L@prefix@/lib + +# HDF5 LIBRARY +HDFLIB = -L$(HDF5ROOT)/lib -lhdf5 -lz $(SZLIB) @LDFLAGS@ + +# SZ LIBRARY +SZLIB = @SZLIB@ + +# Extra files that I wish to include in the dist tar ball. +EXTRA_DIST = TestUnderscoreC.c TestUnderscore.f $(EXTRA_HEADERS) + +# Files that I don't want to include in the dist tar ball +nodist_include_HEADERS = @UNDERSCORE_H@ + + +# What to build... Will be determined by configure script. +OBJEXT = o +lib_LIBRARIES = libH5.a + +# Listing of all possible targets that I may build. +EXTRA_LIBRARIES = libH5.a + +# Header files that I wish to install in $(prefix)/include +include_HEADERS = \ + H5.h \ + H5Block.h \ + H5Fed.h \ + H5Fed_map.h \ + H5Fed_store.h \ + H5Fed_tags.h \ + H5Part.h + +# Listing of all possible headers that I may include +EXTRA_HEADERS = + +# Listing of sources +libH5_a_SOURCES = \ + H5.c \ + H5_inquiry.c \ + H5Block.c \ + H5Fed.c \ + H5Fed_adjacency.c \ + H5Fed_inquiry.c \ + H5Fed_map.c \ + H5Fed_retrieve.c \ + H5Fed_store.c \ + H5Fed_tags.c \ + H5Part.c + +SUBDIRS = h5_core bindings + +libH5.a: $(libH5_a_OBJECTS) + ${AR} rucs $@ $^ + +%.o : %.c + $(CC) $(CFLAGS) $(INC) -c $< + +H5Part.o: H5Part.c H5Part.h +H5Block.o: H5Block.c H5Part.h H5Block.h + +clean: clean-recursive + $(RM) -f *~ *.o *.a *.so + +distclean: clean + $(RM) -f Underscore.h + $(RM) -rf .deps + $(RM) -rf .libs + $(RM) -f Makefile