# HG changeset patch # User John Tsiombikas # Date 1442366652 -10800 # Node ID 769ae86eee313b90d3588d1e0f60698f35810da6 # Parent b1c6448d56bc6c6681ec67745453db1fcc9c6df5 makefile modified to build on mingw diff -r b1c6448d56bc -r 769ae86eee31 .hgignore --- a/.hgignore Wed Aug 05 07:17:54 2015 +0300 +++ b/.hgignore Wed Sep 16 04:24:12 2015 +0300 @@ -5,3 +5,8 @@ ^libanim.so ^libanim.dylib ^Makefile$ +Debug/ +Release/ +\.sdf$ +\.suo$ +\.user$ diff -r b1c6448d56bc -r 769ae86eee31 Makefile.in --- a/Makefile.in Wed Aug 05 07:17:54 2015 +0300 +++ b/Makefile.in Wed Sep 16 04:24:12 2015 +0300 @@ -4,9 +4,13 @@ dep = $(obj:.o=.d) lib_a = libanim.a -ifeq ($(shell uname -s), Darwin) +sys := $(patsubst MINGW32%,MINGW32,$(shell uname -s)) +ifeq ($(sys), Darwin) lib_so = libanim.dylib shared = -dynamiclib +else ifeq ($(sys), MINGW32) + lib_so = libanim.dll + shared = -shared else somajor = 0 sominor = 1 @@ -14,12 +18,13 @@ lib_so = $(soname).$(sominor) solink = libanim.so shared = -shared -Wl,-soname,$(soname) + pic = -fPIC endif CC = gcc AR = ar -CFLAGS = $(opt) $(dbg) -pedantic -Wall -fPIC -I$(PREFIX)/include +CFLAGS = $(opt) $(dbg) -pedantic -Wall $(pic) -I$(PREFIX)/include LDFLAGS = -L$(PREFIX)/lib -lvmath -lm -lpthread .PHONY: all