# Makefile example.
# Rob Simmonds
#
CC= 	gcc

OBJS= 	MeanStd.o mult.o sprinkle.o aCorr.o rs.o \
	variance.o buckets.o synTraff.o

# This first LIBS line is what Rob needed to use at U Calgary
# LIBS= 	-L/usr/X11R6/lib -ltcl -ltk -ldl -lX11 -lXaw -lefence -lm
# This second LIBS line is what is needed on skorpio at U Saskatchewan
LIBS= -L/sw/arch/lib -ltk8.0 -ltcl8.0 -lX11 -lm -ldl
#LIBS= 	-L/usr/X11R6/lib -ltcl -ltk -ldl -lX11 -lXaw -lm
# This third LIBS line is what is needed on berwanger.dagstuhl.de
#LIBS= 	-L/usr/lib/X11R5 -ltcl -ltk -ldl -lX11 -lXaw -lm

# This is the include path needed on skorpio
#INCL=
# This is the include path needed on skimo
#INCL=-I. -I/usr/openwin/share/include
INCL=-I.
# This is the include path needed on sparkle
#INCL=

CFLAGS=	-g

.c.o:
	$(CC) $(CFLAGS) $(INCL) -c $*.c


all: synTraff fancyshift hosking scale 

synTraff: $(OBJS)
	$(CC) -o $@ $(OBJS) $(LIBS)

clean:
	rm *.o synTraff fancyshift hosking scale

depend:
	@sh -c 'makedepend \
	`for i in $(OBJS) ; do echo -n $$i " " |sed "s/\.o/.c/"; \
	done`'


fancyshift:
	$(CC) -o $@ $@.c -lm

hosking:
	$(CC) -o $@ $@.c -lm

scale:
	$(CC) -o $@ $@.c


