summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-22 15:44:00 +0100
committerNao Pross <naopross@thearcway.org>2019-01-22 15:44:35 +0100
commit0af63017da578e5838f9b9dde6fdcc58f71fb235 (patch)
tree0d19309b8a38adcc141c9671e978ff274119aef7 /makefile
parentRename library from libwrapsdl2 to libwsdl2 (diff)
downloadlibwsdl2-0af63017da578e5838f9b9dde6fdcc58f71fb235.tar.gz
libwsdl2-0af63017da578e5838f9b9dde6fdcc58f71fb235.zip
Add ninja build files and configure script, remove makefile
Diffstat (limited to '')
-rw-r--r--makefile27
1 files changed, 0 insertions, 27 deletions
diff --git a/makefile b/makefile
deleted file mode 100644
index ed5420a..0000000
--- a/makefile
+++ /dev/null
@@ -1,27 +0,0 @@
-# Compiler
-CPP := c++
-CFLAGS := -Wall -pedantic -std=c++17 -fPIC -shared -I include -DDEBUG -DWRAPSDL2_EXCEPTIONS
-LFLAGS := -lSDL2
-
-SRCS := $(wildcard *.cpp)
-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)
-
-build/%.o: %.cpp build
- $(CPP) $(CFLAGS) -o $@ -c $<
-
-build:
- mkdir -p build