mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 00:38:21 +01:00
Change build dir
This commit is contained in:
parent
3333e41cae
commit
43b52a3d46
11
Makefile
11
Makefile
@ -1,9 +1,16 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-W -Wall -g -std=c99 -D DEBUG
|
CFLAGS=-W -Wall -g -std=c99 -D DEBUG
|
||||||
BUILDIRD=build
|
|
||||||
EXT=dylib
|
EXT=dylib
|
||||||
SERVER=plugin_manager.o ini.o http_server.o plugins/dictionary.o plugins/utils.o
|
SERVER=plugin_manager.o ini.o http_server.o plugins/dictionary.o plugins/utils.o
|
||||||
SERVERLIB=-lpthread -ldl
|
SERVERLIB=-lpthread -ldl
|
||||||
|
|
||||||
|
ifeq ($(UNAME_S),Linux)
|
||||||
|
BUILDIRD=/root/antd
|
||||||
|
endif
|
||||||
|
ifeq ($(UNAME_S),Darwin)
|
||||||
|
BUILDIRD=../build
|
||||||
|
endif
|
||||||
|
|
||||||
#-lsocket
|
#-lsocket
|
||||||
PLUGINS= dummy.$(EXT) fileman.$(EXT) pluginsman.$(EXT) wterm.$(EXT)
|
PLUGINS= dummy.$(EXT) fileman.$(EXT) pluginsman.$(EXT) wterm.$(EXT)
|
||||||
|
|
||||||
@ -33,7 +40,7 @@ clean: sclean pclean
|
|||||||
sclean:
|
sclean:
|
||||||
rm -f *.o build/httpd
|
rm -f *.o build/httpd
|
||||||
pclean:
|
pclean:
|
||||||
rm -f build/plugins/* plugins/*.o
|
rm -f $(BUILDIRD)/plugins/* plugins/*.o
|
||||||
-for file in plugins/* ;do \
|
-for file in plugins/* ;do \
|
||||||
if [ -d "$$file" ]; then \
|
if [ -d "$$file" ]; then \
|
||||||
rm "$$file"/*.o; \
|
rm "$$file"/*.o; \
|
||||||
|
Loading…
Reference in New Issue
Block a user