From e3cd17d1a10fd12bb38badddc951ba45424d683f Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 7 Mar 2019 03:50:05 +0100 Subject: Update to travis build test --- example/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'example/Makefile') 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 -- cgit v1.2.3