diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bd5bb54 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +WARNINGS=-Wall -Wextra -Wshadow -Wconversion -Wpedantic -pedantic -std=gnu11 -Wno-unused-function -Wno-fixed-enum-extension -Wimplicit-fallthrough +LIBS=-lSDL2 -lGL -ldl +DEBUG_CFLAGS=$(CFLAGS) $(WARNINGS) $(LIBS) -DDEBUG -O0 -g +obj/debug: physics obj/sim.so + touch obj/debug +physics: main.c gui.h + $(CC) main.c -o $@ $(DEBUG_CFLAGS) +obj/sim.so: *.[ch] + $(CC) sim.c -fPIC -shared -o $@ $(DEBUG_CFLAGS) + touch obj/sim.so_changed |