summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
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