# makefile for wavelet program, Sun version

C859 = /afs/cs/project/classes-ph/859E/pub

# include and library paths
IPATH = -I$(C859)/include
LIBS = -L$(C859)/lib -lsvl.dbg -larg -lm

# compilers and settings to use for C++ and C code, respectively
CPPC = g++
CC = gcc

CFLAGS = -g $(IPATH)
CPPFLAGS = $(CFLAGS) -DVL_CHECKING
# the above VL options turn on subscriptrange checking

# after code is debugged, replace -g -lsvl.dbg -DVL_CHECKING
# with                            -O -lsvl
# for optimization.  Program may run many times faster that way.

SOURCE = inout.cc pic.c pnm.c

all: inout

inout: inout.o pic.o pnm.o
	$(CPPC) -o inout inout.o pic.o pnm.o $(LIBS)

.SUFFIXES: .cc .c

.cc.o:
	$(CPPC) -c $(CPPFLAGS) $<

clean:
	-rm -rf inout core *.o *~ "#"*"#" Makefile.sun.bak

depend:
	makedepend -fMakefile.sun $(IPATH) \
		-I/usr/local/include/g++ \
		-I/usr/local/include \
		$(SOURCE)

# DO NOT DELETE
