1 2 3 4 5 6 7 8 9
CC = /usr/bin/g++ LIBDIR = ../build/lib INCDIR = ../build/inc .PHONY: pong pong: $(CC) -I$(INCDIR) -L$(LIBDIR) -lengine $@.cpp -o $@.out LD_LIBRARY_PATH=$(LIBDIR) ./$@.out