Add respect to LIB_DIR variable and pkgconfig example
This commit is contained in:
parent
bd4273050c
commit
461f5f52f2
5
Makefile
5
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
|
||||
|
|
|
@ -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}
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue