32 lines
529 B
Makefile
32 lines
529 B
Makefile
CXXFLAGS= -Wall -g -std=c++0x
|
|
OBJECTS=Factory.o mimic.o dmmap.o pwnd.o #ignoreme.a
|
|
EXE=main
|
|
all: pwnd.o $(EXE)
|
|
|
|
$(EXE): $(OBJECTS)
|
|
$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@
|
|
test: test.cpp mimic.o dmmap.o
|
|
rtest: test
|
|
./test
|
|
Factory.o: Factory.cpp Factory.h
|
|
mimic.o: mimic.cpp mimic.h
|
|
dmmap.o: dmmap.cpp dmmap.h
|
|
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)
|