head	1.6;
access;
symbols
	Hobson_Rock_14Dec2009:1.6
	BEFORE_VCS_CHANGE:1.2
	Hobson_Rock_16Oct2009:1.6
	Hobson_Rock_29June2009:1.5
	Jun15_2009:1.4
	June_9_2009_NoNan:1.4
	Apr_7_2009:1.2
	mar19_2009:1.2
	mar18_2009:1.2
	feb13_2009:1.2
	feb10-2009:1.2
	feb09-2009:1.2
	dec15_2008:1.2
	dec12_2008:1.2
	ST_10_5:1.2
	ST_10_4b:1.2
	ST_10_4:1.2
	ST_10_3:1.2
	ST10_HW:1.2
	ST_10_2:1.2
	ST_10_1:1.2
	ST_10_0:1.2
	AUTONOMY_BRANCH:1.2.0.2
	AUTONOMY:1.2
	AUTONOMY-2008_07_30:1.2;
locks; strict;
comment	@# @;


1.6
date	2009.10.08.21.36.20;	author rob;	state Exp;
branches;
next	1.5;

1.5
date	2009.06.16.16.30.15;	author rob;	state Exp;
branches;
next	1.4;

1.4
date	2009.06.01.23.21.45;	author rob;	state Exp;
branches;
next	1.3;

1.3
date	2009.05.18.16.55.55;	author rob;	state Exp;
branches;
next	1.2;

1.2
date	2008.07.29.15.32.53;	author fpy;	state Exp;
branches;
next	1.1;

1.1
date	2008.06.10.20.10.48;	author rob;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Debbie's new revision on 7 Oct 2009.
@
text
@#############################################################################
# user defined variables
# QNX Version
#
#define where to find the newmat libraries and headers
NEWMAT_INC_DIR = /usr/local/include/newmat
NETCDF_INC_DIR = /usr/local/include
NEWMAT_LIB_DIR = /usr/local/lib
NETCDF_LIB_DIR = /usr/local/lib

OUTPUT_DIR = qnx

DEPEND_TOOL = makedepend
CXX = cc
CFLAGS = -O2 -g -WC,-xs -D_QNX -DUNIX
#
# LIBS = -lnewmat -lm -lnetcdf  
# Apparently -lm doesn't exist in QNX, so I took it out
#
LIBS = -lnewmat -lnetcdf
INC_PATHS = -I$(NEWMAT_INC_DIR) -I$(NETCDF_INC_DIR) -I../utils
LIB_PATHS = -L$(NEWMAT_LIB_DIR) -L$(NETCDF_LIB_DIR) ../utils/utils.lib

#SOURCES = main.cpp TerrainNav.cpp TerrainMap.cpp mapio.cpp myOutput.cpp

SOURCES = main.cpp TerrainNav.cpp TerrainMap.cpp mapio.cpp myOutput.cpp \
	TNavFilter.cpp TNavPointMassFilter.cpp \
	TNavParticleFilter.cpp \
	structDefs.cpp sensCalcs.cpp \
	matrixArrayCalcs.cpp
PROGRAM = main

OBJECTS = $(SOURCES:%.cpp=$(OUTPUT_DIR)/%.o)
DEPEND = $(SOURCES:%.cpp=$(OUTPUT_DIR)/%.d)

#############################################################################
# build commands

all:	$(OUTPUT_DIR)/$(PROGRAM)

#builds source files into an executable named $(PROGRAM)
$(OUTPUT_DIR)/$(PROGRAM): $(OBJECTS)
	@@echo building $@@...
	$(CXX) $(LIB_PATHS) $^ -o $@@ $(LIBS)
	@@echo

#generic command to build object files from source files
$(OUTPUT_DIR)/%.o :%.cpp
	@@echo compiling $<...
	$(CXX) $(CFLAGS) $(INC_PATHS) -c $< -o $@@
	@@echo

#generic command to build dependency files from source files
$(OUTPUT_DIR)/%.d :%.cpp
	@@[ -d $(OUTPUT_DIR) ] || mkdir -p $(OUTPUT_DIR)
	@@echo generating dependency file for $<
	@@$(DEPEND_TOOL) $(INC_PATHS) $? -f $@@.tmp
	@@mv $@@.tmp $@@
	@@echo

#	@@set -e; $(CXX) -MM $(CFLAGS) $(INC_PATHS) $< \
#	| awk '/o:/ {printf "%s", "$@@ $(OUTPUT_DIR)/"} {print}' > $@@; \
#	[ -s $@@ ] || rm -f $@@

###########################################################################
# clean-up commands

#clean will only delete the object and dependency files
.PHONY: clean
clean:
	rm -f $(OBJECTS) $(DEPEND)

#purge will delete the program file, object files, dependency files, and
#output directory
.PHONY: purge
purge:
	rm -f $(PROG) $(OBJECTS) $(DEPEND)
	rm -rf $(OUTPUT_DIR)

#include the dependencies
ifneq ($(MAKECMDGOALS),purge)
ifneq ($(MAKECMDGOALS),clean)
-include $(DEPEND)
endif
endif
@


1.5
log
@Added "all" target so that this makefile can be called by the master makefile.
@
text
@d28 1
@


1.4
log
@Changed the order of the sources.
@
text
@d38 2
@


1.3
log
@This is the first commit of new code from Debbie, May 2008.  She has emailed
various fixes, so it's not the same as her original tarball.

It runs much more slowly than the previous code; we're working on that now.
@
text
@d26 3
a28 2
SOURCES = main.cpp TerrainNav.cpp TNavFilter.cpp TNavPointMassFilter.cpp \
	TerrainMap.cpp 	mapio.cpp structDefs.cpp myOutput.cpp sensCalcs.cpp \
@


1.2
log
@added global configuration file for make under autonomy
@
text
@a7 1

d24 5
a28 1
SOURCES = main.cpp TerrainNav.cpp TerrainMap.cpp mapio.cpp myOutput.cpp
a33 14
ifeq ($(AUTONOMY), 1)
# Specific configuration for AUTONOMY group
# this allow to alter the value of the different variables
# used by make when AUTONOMY variable has been set to 1
# on the calling shell  
-include ../autonomy.make # this file contains the general
                       # modifications we want to apply to
                       # all the modules 

# following line are more specific to this file 

# end of AUTONOMY specific
endif 

@


1.1
log
@Stanford student Debbie Meduna's terrain navigation code.  Also included here
is mapio, by Brian Schlining, for reading in subsets of NetCDF files.
@
text
@d31 14
@

