fix mac os linker problem

This commit is contained in:
Xuan Sang LE
2017-07-30 01:00:36 +02:00
parent 41bce4f5e8
commit 6e5aa0ddcf
6 changed files with 12 additions and 9 deletions

View File

@ -30,11 +30,10 @@ CFLAGS= -W -Wall -g -std=c99 -D DEBUG $(DB_FLAG) $(PF_FLAG)
LIB_PATH=$(BUILDIRD)/plugins
LIB_NAME=libantd
LIB_FLAG= $(LIB_NAME).$(EXT)
SERVERLIB=-lpthread -ldl $(LIB_FLAG)
SERVERLIB= -ldl $(LIB_FLAG)
SERVER_O=plugin_manager.o \
http_server.o \
httpd.o
http_server.o
#-lsocket
PLUGINS= dummy.$(EXT) fileman.$(EXT) pluginsman.$(EXT) wterm.$(EXT) nodedaemon.$(EXT) cookiex.$(EXT) wsimg.$(EXT)
@ -55,7 +54,7 @@ main: httpd plugins
httpd: lib $(SERVER_O)
$(CC) $(CFLAGS) $(SERVER_O) $(SERVERLIB) -o $(BUILDIRD)/httpd
$(CC) $(CFLAGS) $(SERVER_O) $(SERVERLIB) -o $(BUILDIRD)/httpd httpd.c
cp antd $(BUILDIRD)
lib: $(LIBOBJS)