diff options
Diffstat (limited to 'example/Makefile')
-rw-r--r-- | example/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/example/Makefile b/example/Makefile index 9ae78ca..f72ad2f 100644 --- a/example/Makefile +++ b/example/Makefile @@ -2,8 +2,11 @@ CC = /usr/bin/g++ LIBDIR = ../build/lib INCDIR = ../build/inc -.PHONY: pong - -pong: - $(CC) -I$(INCDIR) -L$(LIBDIR) -lengine $@.cpp -o $@.out +%: %.cpp + $(CC) -I$(INCDIR) -L$(LIBDIR) -lengine $< -o $@.out LD_LIBRARY_PATH=$(LIBDIR) ./$@.out + +.PHONY: clean + +clean: + rm -df *.out |