51 lines
1.7 KiB
Makefile
51 lines
1.7 KiB
Makefile
#/****************************************************************************
|
|
#* NCSA HDF *
|
|
#* National Comptational Science Alliance *
|
|
#* University of Illinois at Urbana-Champaign *
|
|
#* 605 E. Springfield, Champaign IL 61820 *
|
|
#* *
|
|
#* For conditions of distribution and use, see the accompanying *
|
|
#* hdf-java/COPYING file. *
|
|
#* *
|
|
#****************************************************************************/
|
|
|
|
CC = @CC@ @COPT@
|
|
RM = @RM@
|
|
|
|
HDF5INC = @HDF5INC@
|
|
HDF5LIB = @HDF5LIB@
|
|
JAVAINC1=@JAVAINC@
|
|
JAVAINC2=@JAVAINC2@
|
|
SZLIB=@SZLIB@
|
|
ZLIB=@ZLIB@
|
|
|
|
LIBDIR=../../lib/@JAVATARG@
|
|
|
|
# Flags passed to the C compiler. Leave these alone.
|
|
|
|
LD=@LD@
|
|
LDOPT=@LDOPT@
|
|
LLEXT=@LLEXT@
|
|
SLEXT=@SLEXT@
|
|
JSLEXT=@JSLEXT@
|
|
|
|
COPT=@COPT@
|
|
|
|
CFLAGS = -DH5_USE_16_API -D_FILE_OFFSET_BITS=64 $(DEFS) -I. -I$(HDF5INC) -I$(JAVAINC1) -I$(JAVAINC2)
|
|
|
|
LIBS = $(HDF5LIB)/libhdf5.$(LLEXT) $(ZLIB) $(SZLIB) -lm
|
|
|
|
# Macro def: object filename used
|
|
OBJECTS = exceptionImp.o h5Constants.o h5Imp.o h5aImp.o h5dImp.o h5fImp.o h5gImp.o h5iImp.o h5pImp.o h5rImp.o h5sImp.o h5tImp.o nativeData.o h5util.o h5zImp.o
|
|
|
|
# make depends on the files specified in the objects macro defination
|
|
all: libjhdf5
|
|
|
|
hdf5lib: libjhdf5
|
|
|
|
libjhdf5: $(OBJECTS)
|
|
-mkdir -p $(LIBDIR);
|
|
$(LD) $(LDOPT) -o $(LIBDIR)/libjhdf5.$(JSLEXT) $(LDOPT2) $(OBJECTS) $(LIBS)
|
|
|
|
clean:
|
|
$(RM) -f *.o so_locations $(LIBDIR)/libjhdf5.$(JSLEXT)
|