nuclear@0: src = $(wildcard src/*.c) nuclear@0: obj = $(src:.c=.o) nuclear@0: bin = oculus2 nuclear@0: nuclear@21: warn = -pedantic -Wall nuclear@21: nuclear@21: CFLAGS = $(warn) -g `pkg-config --cflags sdl2` nuclear@21: LDFLAGS = $(libgl) `pkg-config --libs sdl2` -lovr $(libsys) -lvmath nuclear@0: nuclear@0: ifeq ($(shell uname -s), Darwin) nuclear@0: libgl = -framework OpenGL -lGLEW nuclear@21: warn += -Wno-deprecated-declarations nuclear@0: else nuclear@0: libgl = -lGL -lGLU -lGLEW nuclear@20: libsys = -lX11 nuclear@0: endif nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin)