#Uncomment one of the "CC" lines
# For gcc, the "gnu" c compiler
CC= gcc
# For ANSI compilers (Sun)
#CC= cc

#For Optimization
#CFLAGS= -O2
#For debugging
#CFLAGS= -g 

RM= /bin/rm -f
#--- You shouldn't have to edit anything else. ---

.c.o: 
	$(CC) -c  $(CFLAGS)  $<
#	$(CC) -c  $(CFLAGS) -DQUIETDOWN $<
#	$(CC) -c -DNODATA -DREFLECTIVITY $(CFLAGS) $<
#	$(CC) -c -DMULTIROCK $(CFLAGS) $<
#	$(CC) -c -DMULTIROCK -DZERO_CORRELATION $(CFLAGS) $<
#	$(CC) -c -DHDIM_UNLIMITED $(CFLAGS) $<
#	$(CC) -c -DCURSES $(CFLAGS) $<

all:  susuro dpipe qpipe
 
dpipe : dpipe.o
	$(CC) dpipe.o  -o dpipe -lm 

qpipe : qpipe.o
	$(CC) qpipe.o  -o qpipe -lm 

susuro : susuro.o intstuff.o mystuff.h nrutil.o nrutil.h brent.o mnbrak.o powell.o linmin.o Makefile
	$(CC) susuro.o intstuff.o nrutil.o brent.o mnbrak.o powell.o linmin.o -o susuro -lm -lncurses

clean:
	rm -f *.o
	rm -f *~ 
	rm -f ./#*











