fix unix compilation error

This commit is contained in:
lxsang 2016-03-04 11:44:13 +01:00
parent 78f1e67864
commit 9244208f30

View File

@ -1,16 +1,17 @@
CC=gcc CC=gcc
CFLAGS=-W -Wall -g -std=c99 -D DEBUG -D USE_DB
EXT=dylib EXT=dylib
SERVER=plugin_manager.o plugins/ini.o http_server.o plugins/dictionary.o plugins/utils.o SERVER=plugin_manager.o plugins/ini.o http_server.o plugins/dictionary.o plugins/utils.o
SERVERLIB=-lpthread -ldl SERVERLIB=-lpthread -ldl
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux) ifeq ($(UNAME_S),Linux)
BUILDIRD=/root/antd BUILDIRD=/root/antd
PF_FLAG=-D_GNU_SOURCE
endif endif
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)
BUILDIRD=./build BUILDIRD=./build
PF_FLAG=
endif endif
CFLAGS=-W -Wall -g -std=c99 -D DEBUG -D USE_DB $(PF_FLAG)
#-lsocket #-lsocket
PLUGINS= dummy.$(EXT) fileman.$(EXT) pluginsman.$(EXT) wterm.$(EXT) nodedaemon.$(EXT) PLUGINS= dummy.$(EXT) fileman.$(EXT) pluginsman.$(EXT) wterm.$(EXT) nodedaemon.$(EXT)