diff --git a/Makefile b/Makefile index 7dd28d6..653c60a 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ # Project directories SRC_DIR ?= src SDK_DIR ?= sdk -OUT_DIR ?= ./build +OUT_DIR ?= build +LIB_DIR ?= lib # Project definition include project.mk @@ -77,7 +78,7 @@ default: library .PHONY: all dirs clean doc install install: library - cp $(OUT_DIR)/lib$(PROJECT_NAME).so $(PREFIX)/lib64/ + cp $(OUT_DIR)/lib$(PROJECT_NAME).so $(PREFIX)/$(LIB_DIR)/ cp -R include/aisl $(PREFIX)/include/ # vim:ft=make diff --git a/libaisl.pc.example b/libaisl.pc.example new file mode 100644 index 0000000..f8110ce --- /dev/null +++ b/libaisl.pc.example @@ -0,0 +1,19 @@ +############################################################################### +# +# Copyright (c) 2017-2019 by Löwenware Ltd +# Please, refer LICENSE file for legal information +# +############################################################################### + +prefix=/usr/local +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: libaisl +URL: https://lowenware.com/aisl/ +Description: Asynchronous Internet Server Library +Version: 1.0.0 +Libs: -L${libdir} -laisl +Libs.private: -lcrypto -lssl +Cflags: -I${includedir} diff --git a/project.mk b/project.mk index 2a723f8..46e9e6b 100644 --- a/project.mk +++ b/project.mk @@ -3,8 +3,8 @@ # Löwenware Makefile Config, 2019-03-02 17:35 # -PREFIX = /usr/local -PKG_CONFIG = pkg-config +PREFIX ?= /usr/local +PKG_CONFIG ?= pkg-config PROJECT_NAME = aisl