summaryrefslogtreecommitdiffstats
path: root/test/makefile
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-21 04:48:16 +0100
committerNao Pross <naopross@thearcway.org>2019-01-21 04:48:16 +0100
commit08ac57ec67c50e7331685a557642fa57e8e3427d (patch)
tree343cb2182300ffabafd709ceef00a5de4222c0fc /test/makefile
parentAdd basic window wrapper (diff)
downloadlibwsdl2-08ac57ec67c50e7331685a557642fa57e8e3427d.tar.gz
libwsdl2-08ac57ec67c50e7331685a557642fa57e8e3427d.zip
Add window test
Diffstat (limited to '')
-rw-r--r--test/makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/makefile b/test/makefile
new file mode 100644
index 0000000..11df431
--- /dev/null
+++ b/test/makefile
@@ -0,0 +1,19 @@
+# Compiler
+CPP := c++
+CFLAGS := -Wall -pedantic -std=c++17 -fPIC -I ../include -DDEBUG
+LFLAGS := ../build/libwrapsdl2.so -lSDL2
+
+SRCS := $(wildcard *.cpp)
+OBJS := $(patsubst %.cpp,build/%.o,$(SRCS))
+
+# Recipes
+all: build/window_test
+
+build/window_test: build/window_test.o
+ $(CPP) $(CFLAGS) -o $@ $< $(LFLAGS)
+
+build/%.o: %.cpp build
+ $(CPP) $(CFLAGS) -o $@ -c $<
+
+build:
+ mkdir -p build