CC = g++ CFLAGS = -Wall -g -std=c++11 PROGS = SimplePoint test all: $(PROGS) test: test.cc $(CC) $(CFLAGS) -o $@ $^ SimplePoint: SimplePoint.cc SimplePoint.h $(CC) $(CFLAGS) -o $@ $< clean: rm -f *.o $(PROGS)