nuclear@0: csrc = $(wildcard src/*.c) nuclear@0: ccsrc = $(wildcard src/*.cc) nuclear@0: obj = $(ccsrc:.cc=.o) $(csrc:.c=.o) nuclear@0: bin = rayfract nuclear@0: nuclear@0: ifeq ($(shell uname -s), Darwin) nuclear@0: libgl = -framework OpenGL -framework GLUT -lGLEW nuclear@0: else nuclear@4: libgl = -lGL -lGLU -lglut -lGLEW nuclear@0: endif nuclear@0: nuclear@0: CC = gcc nuclear@0: CXX = g++ nuclear@7: CFLAGS = -pedantic -Wall -g -I/usr/local/include `pkg-config --cflags vmath` nuclear@7: CXXFLAGS = -pedantic -Wall -g -I/usr/local/include `pkg-config --cflags vmath` nuclear@7: LDFLAGS = -L/usr/local/lib $(libgl) `pkg-config --libs vmath` -limtk nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin)