school/cs235/lab10/Makefile
2016-04-06 20:46:10 -07:00

33 lines
521 B
Makefile

CXXFLAGS= -Wall -g -std=c++0x
OBJECTS=Factory.o avl.o node.o main.o pwnd.o
EXE=main
all: $(EXE)
$(EXE): $(OBJECTS)
$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@
test: test.cpp avl.o node.o
rtest: test
./test
Factory.o: Factory.cpp Factory.h
avl.o: avl.cpp avl.h
node.o: node.cpp node.h
main.o: main.cpp
pwnd.o: pwnd.c
run: main
./main
clean:
@rm -vf *.o
@rm -vf $(EXE)
@rm -vf *.1
@rm -vf *.0
@rm -vf test
@rm -rvf *.dSYM
drun: main
gdb ./main
valgrind: $(EXE)
valgrind --tool=memcheck --leak-check=yes ./$(EXE)