# makefile for batch processor
# a tab precedes all rules
#
# OBJS  - macro represinting all dependent object modules
 
CC = icc
CFLAGS = -g

# Use this definition for LFLAGS on sdsrain and/or other 32 bit machines

#LFLAGS = -ll -static -L/usr/local/lib -L/usr/local/hdf5/lib -lnetcdf -lmfhdf -ldf -ljpeg -lhdf5_hl -lhdf5 -lz -lm

# Use this definition for LFLAGS on krain and/or other 64 bit machines

LFLAGS = -ll -L/usr/lib64 -L/usr/local/lib -L/usr/local/hdf5/lib -lnetcdf -lmfhdf -ldf -ljpeg -lhdf5_hl -lhdf5 -lz -limf -lm

OBJS = ssmis_rdfcdr.o \
       read_sfcdr.o
#
# function depends on OBJS files and is the target file to be made
#
function: $(OBJS)  
	$(CC) $(CFLAGS) $(OBJS) $(LFLAGS) -o ssmis_rdfcdr
#
# dependency of OBJS files
#
# a tab precedes all rules
# default suffix dependency  .c files depend on .o
.c.o:
	$(CC) $(CFLAGS) -c $<
