0.8.5.29:
[sbcl.git] / contrib / sb-bsd-sockets / Makefile
1 # Set CFLAGS and LDFLAGS for sb-bsd-sockets.asd's invocation of gcc
2
3 UNAME:=$(shell uname -m)
4
5 export CFLAGS=-fPIC
6 ifeq (solaris,$(UNAME))
7   export LDFLAGS=-shared -lresolv -lsocket -lnsl
8 else
9   ifeq (Darwin,$(UNAME))
10     export LDFLAGS=-bundle
11   else
12     ifeq (x86_64,$(UNAME))
13       export LDFLAGS=-m32 -shared
14       export CFLAGS+= -m32
15     else
16       export LDFLAGS=-shared
17     endif
18   endif
19 endif
20
21 SYSTEM=sb-bsd-sockets
22 include ../asdf-module.mk