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

This commit is contained in:
Joris Vink 2014-07-03 22:39:16 +02:00
parent d5cd89c544
commit b6a778a4a5
1 changed files with 4 additions and 0 deletions

View File

@ -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 $@