blob: ee8569acdd726ece11453fdceb852818781b9462 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Compiler
CPP := c++
CFLAGS := -Wall -pedantic -std=c++17 -fPIC -I ../include -DDEBUG
LFLAGS := ../build/libwrapsdl2.so -lSDL2 -lpthread
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
|