# Makefile
# makefile for L1Processor swath module
# Charles Cavanaugh
# December 1998

# 03/01 packet positions added by ziskin

GOAL = libSwath.a
INCS =  -I$(PGSINC) -I$(HDFINC) -I$(HDFEOS_INC) -I$(HDFEOS5_INC) -I$(HDF5INC) -I. \
	-I./../diagnostics -I./../time -I./../file \
        -I./../l0 -I./../hdf -I./../science -I./../mopip -I./../engineering -I./../mopch -I./../mopir \
        -I./../calibrations -I./../mop01 -I./../parameters 
SRCS = SwathTimes.C SwathFlags.C SwathLocation.C SwathEngineering.C SwathRadiances.C SwathPacketPositions.C SwathNoise.C \
       SwathData.C SwathList.C 
OBJS = ${SRCS:.C=.o}
CFLAGS = -DLINUX64 -mtune=nocona -m64 -ansi -c
CC = g++

.C.o:
	$(CC) $(CFLAGS) $< $(INCS)

debug:
	make tidy lib "CFLAGS=$(CFLAGS) -g" clean

all:    tidy lib clean

lib:    $(OBJS)
	ar ru $(GOAL) $(OBJS)

clean:
	rm -f $(OBJS)

tidy:
	rm -f $(OBJS) $(GOAL)

lint:
	lint -mux $(SRCS) $(INCS)
