mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 16:58:22 +01:00
fix unix compilation error
This commit is contained in:
parent
78f1e67864
commit
9244208f30
5
Makefile
5
Makefile
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user