1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-01 12:59:47 +02:00

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
CFLAGS=-W -Wall -g -std=c99 -D DEBUG -D USE_DB
EXT=dylib
SERVER=plugin_manager.o plugins/ini.o http_server.o plugins/dictionary.o plugins/utils.o
SERVERLIB=-lpthread -ldl
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
BUILDIRD=/root/antd
PF_FLAG=-D_GNU_SOURCE
endif
ifeq ($(UNAME_S),Darwin)
BUILDIRD=./build
PF_FLAG=
endif
CFLAGS=-W -Wall -g -std=c99 -D DEBUG -D USE_DB $(PF_FLAG)
#-lsocket
PLUGINS= dummy.$(EXT) fileman.$(EXT) pluginsman.$(EXT) wterm.$(EXT) nodedaemon.$(EXT)