# Makefile

PUB = /home/cs228/public
CPP = $(PUB)/bin/ansicpp
HDIR = $(PUB)/include
LIBDIR = $(PUB)/lib
LIBS = -L$(LIBDIR) -lcs228
INCLUDES = -I$(HDIR)


.SUFFIXES: .C

HELPERS = IODetails.o

.C.o:
	$(CPP) $(INCLUDES) -c $(CPPFLAGS) $<


GuestFileCreation.exe: GuestFileCreation.o
	$(CPP) -o GuestFileCreation.exe GuestFileCreation.o $(LIBS)

countChars.exe: countChars.o
	$(CPP) -o countChars.exe countChars.o $(LIBS)

Recovery.exe: Recovery.o $(HELPERS)
	$(CPP) -o Recovery.exe Recovery.o $(HELPERS) $(LIBS)

clean:
	rm -f *.o *.exe

cleanall:	clean
	rm -f *~ core
