nuclear@4: csrc = $(wildcard src/*.c) nuclear@4: ccsrc = $(wildcard src/*.cc) nuclear@4: obj = $(csrc:.c=.o) $(ccsrc:.cc=.o) nuclear@4: bin = erebus nuclear@4: nuclear@4: CFLAGS = -pedantic -Wall -g -Iliberebus/src nuclear@4: CXXFLAGS = -std=c++11 $(CFLAGS) nuclear@4: LDFLAGS = -Lliberebus -Wl,-rpath=liberebus $(libgl_$(sys)) -lm -lerebus -lvmath nuclear@4: nuclear@4: libgl_unix = -lGL -lGLU -lglut -lGLEW nuclear@4: libgl_mac = -framework OpenGL -framework GLUT -lGLEW nuclear@4: libgl_win = -lopengl32 -lglu32 -lglut32 -lglew32 nuclear@4: nuclear@4: $(bin): $(obj) liberebus/liberebus.so nuclear@4: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@4: nuclear@4: .PHONY: clean nuclear@4: clean: nuclear@4: rm -f $(obj) $(bin) nuclear@4: nuclear@4: uname = $(shell uname -s) nuclear@4: ifeq ($(uname), Darwin) nuclear@4: sys = mac nuclear@4: else ifeq ($(findstring MINGW, $(uname)), MINGW) nuclear@4: sys = win nuclear@4: else nuclear@4: sys = unix nuclear@4: endif