summaryrefslogtreecommitdiffstats
path: root/test/makefile
blob: 11df4318f73b7a67f7ecb2c2a20766ca7b5aefa4 (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 

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