mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
Make for Freebsd
This commit is contained in:
8
Makefile
8
Makefile
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user