forked from librsync/librsync
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.project
56 lines (50 loc) · 1.49 KB
/
Makefile.project
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- makefile-bsdmake -*-
# Common/shared setup for this project.
#
# This file contains general project-specific settings.
#
# The common name of the package.
#
# For a library package this is either the library's simple name, else it is the
# library's simple name prefixed by "lib". Ideally it is the same as the base
# of PKGNAME in the pkgsrc module.
#
PACKAGE = librsync
# this project is (supposed to be) all pure standard C
#
CSTD = c99
#CWARNFLAGS += -pedantic
# Attempts will/should be made to conform to Semantic Versioning rules:
#
# https://semver.org/
#
LIB_MAJOR = 2
LIB_MINOR = 0
LIB_MICRO = 2
# n.b.: these can be overridden on the command-line....
#
.if exists(/usr/pkg)
POPT_INCLUDE ?= /usr/pkg/include
POPT_LIB ?= /usr/pkg/lib
.elif exists(/opt/pkg)
POPT_INCLUDE ?= /opt/pkg/include
POPT_LIB ?= /opt/pkg/lib
.else
POPT_INCLUDE ?= /usr/local/include
POPT_LIB ?= /usr/local/lib
.endif
#INTL_INCLUDE ?= /usr/pkg/include
#INTL_LIB ?= /usr/pkg/lib
bmake_install_dirs += ${BINDIR}
bmake_install_dirs += ${INCSDIR}
bmake_install_dirs += ${LIBDIR}
bmake_install_dirs += ${PKGCONFIGDIR}
# these DEBUGDIR ones could/should maybe depend on MKDEBUGLIB, but that's only
# defined after a .include <bsd.*.mk>
bmake_install_dirs += ${DEBUGDIR}/${PREFIX}/bin
bmake_install_dirs += ${DEBUGDIR}/${PREFIX}/lib
bmake_install_dirs += ${DOCDIR}/${PACKAGE}
bmake_install_dirs += ${DOCDIR}/${PACKAGE}/html/
bmake_install_dirs += ${MANDIR}
bmake_install_dirs += ${MANDIR}/man1
bmake_install_dirs += ${MANDIR}/man3