nuclear@3: include proj.mk nuclear@3: src += src/glut/main.c nuclear@3: nuclear@0: obj = $(src:.c=.o) nuclear@0: nuclear@0: sys = $(shell uname -s) nuclear@0: nuclear@3: libgl_Linux = -lGL -lGLU -lglut -lGLEW nuclear@3: libgl_Darwin = -framework OpenGL -framework GLUT -lGLEW nuclear@0: nuclear@3: CFLAGS = -pedantic -Wall -g $(incpaths) nuclear@3: LDFLAGS = $(libpaths) $(libgl_$(sys)) -lm 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)