blob: 304acafe8ad74f985cf73ca0f475b4279ba0b7a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
WARNINGS=-Wall -Wextra -Wshadow -Wconversion -Wpedantic -pedantic -std=gnu++11 -Wno-unused-function -Wno-fixed-enum-extension -Wimplicit-fallthrough
LIBS=-ldl `pkg-config --libs --cflags box2d sdl2 gl`
DEBUG_CFLAGS=$(CFLAGS) $(WARNINGS) $(LIBS) -DDEBUG -O0 -g
obj/debug: physics obj/sim.so obj
touch obj/debug
physics: main.cpp gui.hpp sim.cpp time.cpp
$(CXX) main.cpp -o $@ $(DEBUG_CFLAGS)
obj/sim.so: *.[ch]* obj
$(CXX) sim.cpp -fPIC -shared -o $@ $(DEBUG_CFLAGS)
touch obj/sim.so_changed
obj:
mkdir -p obj
|