#
#
#
CMD = SondeCollocator.x

OBJS = SondeCollocator.o \
          dwptToWvmr.o \
          ../shared/defineVariable.o \
          ../shared/writeAttributeShort.o \
          ../shared/writeAttributeText.o \
          ../shared/writeArrayByte.o \
          ../shared/writeArrayFloat.o \
          ../shared/writeArrayInteger.o \
          ../shared/writeVariableByte.o \
          ../shared/writeVariableFloat.o \
          ../shared/writeVariableInteger.o \
          ../shared/writeVariableShort.o
#          ../shared/stringStartsWith.o \
#          ../shared/writeArrayInteger.o \
#          ../shared/writeAttributeText.o \
#          ../shared/writeVariableInteger.o


HDF5=/data/starfs1/libs/hdf5-1.8.7
netCDF=/data/starfs1/libs/netcdf-4.2

CCFLAGS =  -c -I. -I${netCDF}/include  -I${HDF5}/include  -fPIC -g -shared
#CLFLAGS =  -L${netCDF}/lib -lnetcdf -L${HDF5}/lib -lhdf5 -lz -lm -ljpeg 
CLFLAGS =  -L${netCDF}/lib -lnetcdf -L${HDF5}/lib -lhdf5 -lm 

$(CMD): $(OBJS)
	gcc $(CLFLAGS) $(OBJS) -o $(CMD) 

SondeCollocator.o:SondeCollocator.c
	gcc $(CCFLAGS) SondeCollocator.c  


clean:
	rm -f *.o $(CMD)

# end of file
