aboutsummaryrefslogtreecommitdiff
path: root/example/Makefile
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-07 03:50:05 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-07 03:50:05 +0100
commite3cd17d1a10fd12bb38badddc951ba45424d683f (patch)
tree080808eacbd2c61b1f3d10f27c650ae24d4e3129 /example/Makefile
parent957cbcd55312665b02df2296fae4a6f6bb515707 (diff)
downloadtermgl-e3cd17d1a10fd12bb38badddc951ba45424d683f.tar.gz
Update to travis build test
Diffstat (limited to 'example/Makefile')
-rw-r--r--example/Makefile11
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