nuclear@25: root = . nuclear@25: include $(root)/proj.mk nuclear@25: nuclear@26: src += $(wildcard $(root)/src/pc/*.c) nuclear@25: obj = $(src:.c=.o) $(ccsrc:.cc=.o) nuclear@25: nuclear@25: ifeq ($(shell uname -s), Darwin) nuclear@26: libgl = -framework OpenGL -framework GLUT -lGLEW nuclear@25: else nuclear@26: libgl = -lGL -lGLU -lglut -lGLEW nuclear@25: endif nuclear@25: nuclear@25: CXXFLAGS = -pedantic -Wall -g $(defs) -I$(root)/src/glut $(incpaths) nuclear@25: CFLAGS = $(CXXFLAGS) nuclear@26: LDFLAGS = $(libpaths) $(libs) $(libgl) -ldl -lpthread nuclear@25: nuclear@25: $(bin): $(obj) nuclear@25: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@25: nuclear@25: .PHONY: clean nuclear@25: clean: nuclear@25: rm -f $(obj) $(bin)