SUNDANCE Sample Makefile




CAUTION! Be sure to put the -lsundance call behind the executable name or make won't link to the library! (I spent 5 hours on this one...)
##### User Configurable Options ######
CC = g++
CLINKER = $(CC)
INCLUDE = -I/text2/sundance/v1.0/include -I/text2/sundance/v1.0/src
LIBS = -L/text2/sundance/v1.0/lib
######################################


CFLAGS = $(INCLUDE) -g -Wall -c

EXECS = mytest

OBJECTS = mytest.o
INCLUDES =

mytest: $(OBJECTS) $(INCLUDES)
$(CLINKER) -o mytest $(OBJECTS) $(LIBS) -lsundance

mytest.o: mytest.C
$(CC) $(CFLAGS) mytest.C

clean:
rm *.o