school/cs235/exam1/Makefile

27 lines
446 B
Makefile
Raw Permalink Normal View History

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