Add respect to LIB_DIR variable and pkgconfig example

This commit is contained in:
Ilja Kartašov 2019-04-07 14:33:22 +02:00
parent bd4273050c
commit 461f5f52f2
3 changed files with 24 additions and 4 deletions

View File

@ -7,7 +7,8 @@
# Project directories # Project directories
SRC_DIR ?= src SRC_DIR ?= src
SDK_DIR ?= sdk SDK_DIR ?= sdk
OUT_DIR ?= ./build OUT_DIR ?= build
LIB_DIR ?= lib
# Project definition # Project definition
include project.mk include project.mk
@ -77,7 +78,7 @@ default: library
.PHONY: all dirs clean doc install .PHONY: all dirs clean doc install
install: library 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/ cp -R include/aisl $(PREFIX)/include/
# vim:ft=make # vim:ft=make

19
libaisl.pc.example Normal file
View File

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

View File

@ -3,8 +3,8 @@
# Löwenware Makefile Config, 2019-03-02 17:35 # Löwenware Makefile Config, 2019-03-02 17:35
# #
PREFIX = /usr/local PREFIX ?= /usr/local
PKG_CONFIG = pkg-config PKG_CONFIG ?= pkg-config
PROJECT_NAME = aisl PROJECT_NAME = aisl