-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.mk
37 lines (28 loc) · 1.03 KB
/
common.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# DannyNiu/NJF, 2024-07-27. Public Domain.
LibraryName = MySuiteA
ProductName = lib${LibraryName}
MajorVer = 0
MinorVer = 3
ProductVer = ${MajorVer}.${MinorVer}
ProductRev = ${ProductVer}.0
FILE_EXT_ELF = so.${ProductVer}
FILE_EXT_MACHO = ${ProductVer}.dylib
FILE_EXT = ${FILE_EXT_MACHO}
CFLAGS = -Wall -Wextra -fPIC # If I guessed wrong, specify on command line.
LD = ${CC} # 2024-03-09: direct linker invocation lacks some default flags.
# ``-G'' is the System V and XPG-8/SUSv5 option for producing
# dynamic-linking library. Will need adaptation for pre-existing linkers.
DLLFLAGS = -G
OBJS_GROUP_WITH_ADDITIONAL =
CFLAGS_GROUP_WITH =
INPUT_OBJECTS = ${OBJS_GROUP_ALL} ${OBJS_GROUP_WITH_ADDITIONAL}
prefix = /usr/local
exec_prefix = ${prefix}
libdir = ${exec_prefix}/lib
includedir = ${prefix}/include
# 2022-12-30:
# Each product consist of:
# - Name - obviously,
# - Versioning - semver, *.so.{ver} on ELF, *.{ver}.dylib on Mach-O
# MySuiteA is best used from source code directly; not everyone use
# every algorithm implemented in the suite