diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-21 20:11:29 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-21 20:25:38 +0100 |
commit | 8a0f6d6eee6162d1a10b20512e2f2c86a0278a34 (patch) | |
tree | 44c8202165566c7206bf6ac44b2febed0919588e /makefile | |
parent | Update wrapsdl2::window to use Renderer instead of Surface (diff) | |
download | libwsdl2-8a0f6d6eee6162d1a10b20512e2f2c86a0278a34.tar.gz libwsdl2-8a0f6d6eee6162d1a10b20512e2f2c86a0278a34.zip |
Add events wrapper
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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) |