# Makefile for standalone test drivers in this directory # $Id: makefile,v 1.1 2002-04-05 18:15:03 jthorn Exp $ # # CC, CXX = C and C++ compilers. Defaults are gcc and g++ if # variables aren't set from command line or environment. # CC_FLAGS, CXX_FLAGS = C++ compiler flags. Defaults are # $(STD_GCC_FLAGS) -I.. -g # and # $(STD_GXX_FLAGS) -I.. -g # if variables aren't set from command line or # environment. # # Targets: # test ==> build test programs # clean ==> delete object files, test drivers # superclean ==> delete object files, test drivers # # Bugs: # - Dependencies on *.hh are omitted. # CXX := g++ CFLAGS := $(STD_GCC_FLAGS) -I.. -g CXXFLAGS := $(STD_GXX_FLAGS) -I.. -g ## FIXME: why doesn't this work??? ##JTUTIL_OJB := $(filter-out ../jtutil/test%, $(wildcard ../jtutil/*.o)) ##foo : ## @echo JTUTIL_OBJ $(JTUTIL_OBJ) JTUTIL_OBJ := ../jtutil/array.o \ ../jtutil/cpm_map.o ../jtutil/linear_map.o \ ../jtutil/fuzzy.o ../jtutil/round.o \ ../jtutil/norm.o ../jtutil/miscfp.o \ ../jtutil/error_exit.o ################################################################################ test : test_coords test_coords2 test_coords : test_coords.o coords.o $(JTUTIL_OBJ) -lm test_coords2 : test_coords2.o coords.o $(JTUTIL_OBJ) -lm