X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=Makefile;h=94ecd85319ce180cb6daaa2c17d16e3a9a289121;hb=a6bd42c022f3b1c12a54444e5e469215f2ecbe27;hp=a773a6e7ea5475195dba7f60fdcc5f373fbd8633;hpb=2077648d589ede39a1e47d331ba4a8b57dc25970;p=vrtris diff --git a/Makefile b/Makefile index a773a6e..94ecd85 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,13 @@ dep = $(obj:.o=.d) bin = vrtris -CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl2` -LDFLAGS = $(libsys) $(libgl) `pkg-config --libs sdl2` -ldrawtext +warn = -pedantic -Wall -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast +dbg = -g +opt = -O0 + +CFLAGS = $(warn) $(dbg) $(opt) `pkg-config --cflags sdl2` +LDFLAGS = $(libsys) $(libgl) `pkg-config --libs sdl2` -ldrawtext -lgoatvr \ + -limago -lm sys ?= $(shell uname -s | sed 's/MINGW.*/mingw/') @@ -28,6 +33,10 @@ $(bin): $(obj) -include $(dep) +%.d: %.c + @echo depfile $@ + @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ + .PHONY: cross cross: $(MAKE) CC=i686-w64-mingw32-gcc sys=mingw