From 53384baf9420ae441f919a694ed4620e94251ab2 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Mon, 19 Mar 2018 11:32:10 +0100 Subject: [PATCH] Update Makefile --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6a53d83..10963d3 100644 --- a/Makefile +++ b/Makefile @@ -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)