kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit b6a778a4a5e3cac1193a938ed91e7720a268a0ea
parent d5cd89c544062d6342865195c113f5e914f35646
Author: Joris Vink <joris@coders.se>
Date:   Thu,  3 Jul 2014 22:39:16 +0200

Install kore headers under /usr/local/include/kore

Diffstat:
Makefile | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,6 +3,7 @@ CC=gcc BIN=kore INSTALL_DIR=/usr/local/bin +INCLUDE_DIR=/usr/local/include/kore S_SRC+= src/kore.c src/accesslog.c src/auth.c src/buf.c src/config.c \ src/connection.c src/domain.c src/http.c src/mem.c src/module.c \ @@ -52,10 +53,13 @@ all: $(S_OBJS) $(CC) $(CFLAGS) $(S_OBJS) $(LDFLAGS) -o $(BIN) install: + mkdir -p $(INCLUDE_DIR) install -m 555 $(BIN) $(INSTALL_DIR)/$(BIN) + install -m 644 includes/*.h $(INCLUDE_DIR) uninstall: rm -f $(INSTALL_DIR)/$(BIN) + rm -rf $(INCLUDE_DIR) .c.o: $(CC) $(CFLAGS) -c $< -o $@