.KEEP_STATE:

CCFLAGS = -O4 -g
CCC = /usr/bin/g++
LIBS = -lm -L/usr/lib

all : hello comments variables reference
helloworld.o : helloworld.cpp
	${CCC} -c helloworld.cpp -o helloworld.o ${CCFLAGS}
comments.o : comments.cpp
	${CCC} -c comments.cpp -o comments.o ${CCFLAGS}
variables.o : variables.cpp
	${CCC} -c variables.cpp -o variables.o ${CCFLAGS}
reference.o : reference.cpp
	${CCC} -c reference.cpp -o reference.o ${CCFLAGS}
hello: helloworld.o
	${CCC} -o hello helloworld.o ${LIBS} ${CCFLAGS}
comments : comments.o
	${CCC} -o comments comments.o ${LIBS} ${CCFLAGS}
variables: variables.o
	${CCC} -o variables variables.o ${LIBS} ${CCFLAGS}
reference: reference.o
	${CCC} -o reference reference.o ${LIBS} ${CCFLAGS}
clean:
	rm -f *.o core *~

