From 8a0f6d6eee6162d1a10b20512e2f2c86a0278a34 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 21 Jan 2019 20:11:29 +0100 Subject: Add events wrapper --- makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'makefile') diff --git a/makefile b/makefile index 2c13834..ed5420a 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,6 @@ # Compiler CPP := c++ -CFLAGS := -Wall -pedantic -std=c++17 -fPIC -shared -I include -DDEBUG +CFLAGS := -Wall -pedantic -std=c++17 -fPIC -shared -I include -DDEBUG -DWRAPSDL2_EXCEPTIONS LFLAGS := -lSDL2 SRCS := $(wildcard *.cpp) @@ -8,6 +8,14 @@ OBJS := $(patsubst %.cpp,build/%.o,$(SRCS)) # Recipes all: build/libwrapsdl2.so + $(MAKE) -C test + +.PHONY: test-all +.ONESHELL: +test-all: + cd test + ./build/window_test + build/libwrapsdl2.so: $(OBJS) $(CPP) $(CFLAGS) -o $@ $(LFLAGS) $(OBJS) -- cgit v1.2.1