school/cs235/lab02/Student_Code/Makefile

26 lines
399 B
Makefile
Raw Normal View History

2016-04-06 20:46:10 -07:00
CXXFLAGS= -Wall -g -std=c++0x
OBJECTS=main.o Factory.o circle.o
EXE=main
all: $(EXE)
$(EXE): main.o
$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@
main.o: main.cpp Factory.o circle.o
Factory.o: Factory.cpp Factory.h
circle.o: circle.cpp circle.h
run: $(EXE)
@./$(EXE)
clean:
@rm -vf *.o
@rm -vf $(EXE)
debug: $(EXE)
gdb ./$(EXE)
valgrind: $(EXE)
valgrind --tool=memcheck --leak-check=yes ./$(EXE)