goat3d
annotate libs/vmath/Makefile @ 37:d259a5094390
trying to figure out how to properly call C functions from the python plugin
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 06 Oct 2013 17:42:43 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@29 | 1 csrc = $(wildcard *.c) |
nuclear@29 | 2 ccsrc = $(wildcard *.cc) |
nuclear@29 | 3 obj = $(csrc:.c=.o) $(ccsrc:.cc=.o) |
nuclear@29 | 4 lib = libvmath.a |
nuclear@29 | 5 |
nuclear@29 | 6 ifneq ($(shell uname -s), Darwin) |
nuclear@29 | 7 pic = -fPIC |
nuclear@29 | 8 endif |
nuclear@29 | 9 |
nuclear@29 | 10 CFLAGS = -pedantic -Wall -g $(pic) |
nuclear@29 | 11 CXXFLAGS = -pedantic -Wall -g $(pic) |
nuclear@29 | 12 |
nuclear@29 | 13 $(lib): $(obj) |
nuclear@29 | 14 $(AR) rcs $@ $(obj) |
nuclear@29 | 15 |
nuclear@29 | 16 .PHONY: clean |
nuclear@29 | 17 clean: |
nuclear@29 | 18 rm -f $(obj) $(lib) |