nuclear@29: csrc = $(wildcard *.c) nuclear@29: ccsrc = $(wildcard *.cc) nuclear@29: obj = $(csrc:.c=.o) $(ccsrc:.cc=.o) nuclear@29: lib = libvmath.a nuclear@29: nuclear@29: ifneq ($(shell uname -s), Darwin) nuclear@29: pic = -fPIC nuclear@29: endif nuclear@29: nuclear@29: CFLAGS = -pedantic -Wall -g $(pic) nuclear@29: CXXFLAGS = -pedantic -Wall -g $(pic) nuclear@29: nuclear@29: $(lib): $(obj) nuclear@29: $(AR) rcs $@ $(obj) nuclear@29: nuclear@29: .PHONY: clean nuclear@29: clean: nuclear@29: rm -f $(obj) $(lib)