# $Log: Makefile,v $
# Revision 1.6  2011/12/30 22:23:03  hensley
# Changed libSPAweb.a to libSPAcomlin.a and removed UT library
#
# Revision 1.5  2011/10/19 20:08:01  hensley
# Added findOrbNums.o
# 
# Revision 1.4  2011/08/27 00:11:30  hensley
# Set for version 7 module names
# 
# Revision 1.3  2011/07/01 21:00:52  hensley
# TSDIS_LIB changed to PPSLIB
# 
# Revision 1.2  2008/10/22 21:34:08  hensley
# Set up for Linux
# 
# Revision 1.1.1.1  2008/08/20 23:54:54  hensley
# First Import
# 
# Revision 1.1.1.1  2000/11/10 23:11:57  hensley
# Baseline Source Code
# 
#**************************************************************************
# Make file for the command line TRMM overflight finder.
# 
# Date		Programmer		Comments
# ----		----------		--------
# 		R. Boyette		First written
# 04-OCT-00	Michael Hensley		Cleaned up and commented
# 12-OCT-00	Michael Hensley		Set OBJS files to start with a
# 					lower case letter 
# 28-DEC-11	Michael Hensley		Changed to command line version of
# 					SPA library and removed UT library
#**************************************************************************

SHELL = /bin/sh

#************************************************
# compile command definition
# 
CC = /usr/bin/cc

#************************************************
# flag definition
# 
FLAGS = -ansi

#************************************************
# library definition
# 
LIBS =	$(PPSLIB)/libSPAcomlin.a  \
	$(PPSLIB)/libpgstime.a \
	-lm

#************************************************
# include file definition
# 
INCLUDES =	-I. \
		-I$(PPSINC)

#************************************************
# executuble file definition
# 
OUT = FindOrbitsQ2_exe

#************************************************
# object file definition
# 
OBJS = \
	findOrbitsQ2.o \
	findOrbNums.o \
	getLonMaxLatA.o \
	mainFindOrbitsQ2.o \
	timeVSRLon.o

#************************************************
# executable compile
# 
all:	$(OBJS)
	@echo MAKING $@ EXECUTABLE
	$(CC) -o $(OUT) $(FLAGS) $(OBJS) $(LIBS) 
	rm -f *.o

#************************************************
# C code compile
# 
.c.o:
	@echo COMPILING $<
	$(CC) -c $(FLAGS) $(INCLUDES) $<
	@echo " "

#************************************************
# clean up algorithm
# 
clean:
	rm -f *.o
	rm -f $(OUT) 
