libanim

diff Makefile.in @ 78:769ae86eee31

makefile modified to build on mingw
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 16 Sep 2015 04:24:12 +0300
parents f12663c5c907
children
line diff
     1.1 --- a/Makefile.in	Wed Aug 05 07:17:54 2015 +0300
     1.2 +++ b/Makefile.in	Wed Sep 16 04:24:12 2015 +0300
     1.3 @@ -4,9 +4,13 @@
     1.4  dep = $(obj:.o=.d)
     1.5  lib_a = libanim.a
     1.6  
     1.7 -ifeq ($(shell uname -s), Darwin)
     1.8 +sys := $(patsubst MINGW32%,MINGW32,$(shell uname -s))
     1.9 +ifeq ($(sys), Darwin)
    1.10  	lib_so = libanim.dylib
    1.11  	shared = -dynamiclib
    1.12 +else ifeq ($(sys), MINGW32)
    1.13 +	lib_so = libanim.dll
    1.14 +	shared = -shared
    1.15  else
    1.16  	somajor = 0
    1.17  	sominor = 1
    1.18 @@ -14,12 +18,13 @@
    1.19  	lib_so = $(soname).$(sominor)
    1.20  	solink = libanim.so
    1.21  	shared = -shared -Wl,-soname,$(soname)
    1.22 +	pic = -fPIC
    1.23  endif
    1.24  
    1.25  
    1.26  CC = gcc
    1.27  AR = ar
    1.28 -CFLAGS = $(opt) $(dbg) -pedantic -Wall -fPIC -I$(PREFIX)/include
    1.29 +CFLAGS = $(opt) $(dbg) -pedantic -Wall $(pic) -I$(PREFIX)/include
    1.30  LDFLAGS = -L$(PREFIX)/lib -lvmath -lm -lpthread
    1.31  
    1.32  .PHONY: all