X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrtris;a=blobdiff_plain;f=Makefile;h=94ecd85319ce180cb6daaa2c17d16e3a9a289121;hp=3b1335dbc42d2dac1ca00ecc3fba45567a6ba568;hb=06a83976694c970fcf42bfdfc91832e780ca4747;hpb=1b62e1cf0e1cf019b42ee232ba838d06c55b8cda diff --git a/Makefile b/Makefile index 3b1335d..94ecd85 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,11 @@ dep = $(obj:.o=.d) bin = vrtris -CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl2` +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 @@ -29,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