Make for Freebsd

This commit is contained in:
云风
2013-05-08 17:26:43 +08:00
parent 79c92bbf10
commit fdb37bc110
7 changed files with 15 additions and 3 deletions

View File

@@ -1,16 +1,20 @@
.PHONY : all clean
CFLAGS = -g -Wall
LDFLAGS = -lpthread -llua -ldl -lm
LDFLAGS = -lpthread -llua -lm
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
ifeq ($(uname_S), Darwin)
SHARED = -fPIC -dynamiclib -Wl,-undefined,dynamic_lookup
else
LDFLAGS += -ldl -lrt -Wl,-E
LDFLAGS += -lrt -Wl,-E
SHARED = -fPIC --shared
endif
ifneq ($(uname_S), FreeBSD)
LDFLAGS += -ldl
endif
all : \
skynet \
service/snlua.so \