# -----------------
src = $(wildcard src/*.cc)
-obj = $(src:.cc=.o)
+csrc = $(wildcard src/*.c)
+obj = $(src:.cc=.o) $(csrc:.c=.o)
dep = $(obj:.o=.d)
bin = vrfileman
warn = -pedantic -Wall
+CFLAGS = $(warn) $(opt) $(dbg) $(inc) `pkg-config --cflags sdl2`
CXXFLAGS = $(warn) $(opt) $(dbg) $(inc) `pkg-config --cflags sdl2`
LDFLAGS = $(libgl) -lgmath `pkg-config --libs sdl2`