LDFLAGS += -lglfw LDFLAGS += -lOpenGL LDFLAGS += -lGLEW CFLAGS += -g .PHONY: FORCE .SECONDARY: # do not remove intermediate files all: main FORCE main: main.o main: die.o main: shader.o main: visuals_frag.o main: fill_vert.o # fix compile order main.o: fill_vert.h main.o: visuals_frag.h %.s %.h &: %.spv ./blob $< $* %_frag.spv: %.frag glslc -o $@ $< %_vert.spv: %.vert glslc -o $@ $< clean: FORCE git clean -fxdi