libanim
changeset 78:769ae86eee31 tip
makefile modified to build on mingw
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 16 Sep 2015 04:24:12 +0300 |
parents | b1c6448d56bc |
children | |
files | .hgignore Makefile.in |
diffstat | 2 files changed, 12 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/.hgignore Wed Aug 05 07:17:54 2015 +0300 1.2 +++ b/.hgignore Wed Sep 16 04:24:12 2015 +0300 1.3 @@ -5,3 +5,8 @@ 1.4 ^libanim.so 1.5 ^libanim.dylib 1.6 ^Makefile$ 1.7 +Debug/ 1.8 +Release/ 1.9 +\.sdf$ 1.10 +\.suo$ 1.11 +\.user$
2.1 --- a/Makefile.in Wed Aug 05 07:17:54 2015 +0300 2.2 +++ b/Makefile.in Wed Sep 16 04:24:12 2015 +0300 2.3 @@ -4,9 +4,13 @@ 2.4 dep = $(obj:.o=.d) 2.5 lib_a = libanim.a 2.6 2.7 -ifeq ($(shell uname -s), Darwin) 2.8 +sys := $(patsubst MINGW32%,MINGW32,$(shell uname -s)) 2.9 +ifeq ($(sys), Darwin) 2.10 lib_so = libanim.dylib 2.11 shared = -dynamiclib 2.12 +else ifeq ($(sys), MINGW32) 2.13 + lib_so = libanim.dll 2.14 + shared = -shared 2.15 else 2.16 somajor = 0 2.17 sominor = 1 2.18 @@ -14,12 +18,13 @@ 2.19 lib_so = $(soname).$(sominor) 2.20 solink = libanim.so 2.21 shared = -shared -Wl,-soname,$(soname) 2.22 + pic = -fPIC 2.23 endif 2.24 2.25 2.26 CC = gcc 2.27 AR = ar 2.28 -CFLAGS = $(opt) $(dbg) -pedantic -Wall -fPIC -I$(PREFIX)/include 2.29 +CFLAGS = $(opt) $(dbg) -pedantic -Wall $(pic) -I$(PREFIX)/include 2.30 LDFLAGS = -L$(PREFIX)/lib -lvmath -lm -lpthread 2.31 2.32 .PHONY: all