CC = gcc -ansi -c -m32 #-fnonstd -C -g 
CL = gcc -ansi -m32 #-fnonstd  -C -g 

# Replace this with the path to your netCDF installation. 
# This is correct for bora.
NETCDF_BASE = /usr/local/apps/netcdf

INCS = -I./ -I$(NETCDF_BASE)/include
LIBS = -L$(NETCDF_BASE)/lib -lnetcdf 

#define the rule for compiling .c files
.c.o:		
	${CC} $*.c $(INCS)

sounding.x:	sounding.o
	$(CL) sounding.o -lm -o sounding.x $(INCS) $(LIBS)
