30 lines
418 B
Makefile
30 lines
418 B
Makefile
CXX=g++
|
|
CPPFLAGS=-Wall -g -std=c++0x
|
|
SOURCES=cookies.cpp
|
|
OBJECTS=$(SOURCES:.cpp=.o)
|
|
EXE=cookie
|
|
|
|
all: $(EXE)
|
|
|
|
$(EXE): $(OBJECTS)
|
|
$(CXX) $(LDFLAGS) $(OBJECTS) -o $@
|
|
|
|
|
|
clean:
|
|
@rm -vf *.o
|
|
@rm -rvf *.dSYM
|
|
@rm -vf $(EXE)
|
|
|
|
|
|
run: $(EXE)
|
|
./$(EXE)
|
|
|
|
debug: $(EXE)
|
|
gdb $(EXE)
|
|
|
|
valgrind: $(EXE)
|
|
valgrind --tool=memcheck --leak-check=yes ./$(EXE)
|
|
|
|
autov: $(EXE)
|
|
valgrind --tool=memcheck --leak-check=yes ./$(EXE) < test.txt
|