nuclear@16: obj = main.o nuclear@16: bin = goatprim nuclear@16: nuclear@16: goat_root = ../.. nuclear@21: nuclear@21: ifeq ($(shell uname -s), Darwin) nuclear@21: libgoat = $(goat_root)/libgoat3d.dylib nuclear@21: else nuclear@43: libgoat = $(goat_root)/libgoat3d.so.0.1 nuclear@21: endif nuclear@16: nuclear@16: CC = clang nuclear@16: CXX = clang++ nuclear@16: CFLAGS = -pedantic -Wall -g -I$(goat_root)/src nuclear@23: LDFLAGS = $(libgoat) nuclear@16: nuclear@16: $(bin): $(obj) $(libgoat) nuclear@16: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@16: nuclear@16: .PHONY: clean nuclear@16: clean: nuclear@16: rm -f $(obj) $(bin)