Update Makefile

This commit is contained in:
Xuan Sang LE 2018-03-19 11:32:10 +01:00 committed by GitHub
parent 00f6066f31
commit 53384baf94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ USE_DB=TRUE
USE_SSL = TRUE
CC=gcc
EXT=dylib
BUILDIRD=build
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
BUILDIRD=/opt/www
@ -67,6 +67,8 @@ PLUGINSDEP = libs/plugin.o
main: httpd plugins
initd:
-mkdir -p $(BUILDIRD)
httpd: lib $(SERVER_O)
$(CC) $(CFLAGS) $(SERVER_O) -o $(BUILDIRD)/httpd httpd.c $(SERVERLIB)