school/cs142/lab08/Makefile

19 lines
273 B
Makefile
Raw Permalink Normal View History

2016-04-06 20:45:34 -07:00
CXX=g++
CPPFLAGS=-Wall -g -std=c++0x
all: people
people: main.o person.o
g++ $(CPPFLAGS) person.o main.o -o people
main.o: main.cpp person.o person.h
person.o: person.cpp person.h
test: people
./people < test.txt
clean:
rm -fv people *.o
debug: people
gdb people