# Makefile to compile the ks C++ example under UNIX. # Pieter Suurmond, 2004. # Name of executable (may be full (install-)pathname): PRG = ks # C++ compiler to use. CC = g++ # Source files: SRC = main.cxx ks.cxx wraiff.cxx # Compiler optimization level: CFLAGS = -O2 -Wall # MATH library (syntax: -lfilename (where filename = libname)): LIBS = -lm all: $(PRG) $(PRG): $(SRC) ks.hxx wraiff.hxx $(CC) $(CFLAGS) $(SRC) -o $(PRG) $(LIBS) strip $(PRG) clean: -rm *.o $(PRG) core *~ .depend