aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile/header.in
blob: 970f75da448b14360219883e006b2f9387784514 (plain)
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
# Compiler Options
CXX            = %{cc}
LIB_OPT        = %{lib_opt}
APP_OPT        = %{app_opt}
LANG_FLAGS     = %{lang_flags}
WARN_FLAGS     = %{warn_flags}
SO_OBJ_FLAGS   = %{shared_flags}

LIB_LINK_CMD   = %{so_link}

LIB_LINKS_TO   = %{link_to}
APP_LINKS_TO   = $(LIB_LINKS_TO) -lboost_system
TEST_LINKS_TO  = $(LIB_LINKS_TO) -lboost_filesystem -lboost_system

LIB_FLAGS      = $(SO_OBJ_FLAGS) $(LANG_FLAGS) $(LIB_OPT) $(WARN_FLAGS)
APP_FLAGS      = $(LANG_FLAGS) $(APP_OPT) $(WARN_FLAGS)
TEST_FLAGS     = $(LANG_FLAGS) $(APP_OPT) $(WARN_FLAGS)

SCRIPTS_DIR    = src/scripts

# Version Numbers
VERSION        = %{version}
BRANCH         = %{version_major}.%{version_minor}

LIBNAME        = %{lib_prefix}botan-%{version_major}.%{version_minor}

# Installation Settings
DESTDIR        = %{destdir}
BINDIR         = $(DESTDIR)/bin
LIBDIR         = $(DESTDIR)/%{libdir}
HEADERDIR      = $(DESTDIR)/%{includedir}/botan-$(BRANCH)/botan
DOCDIR         = $(DESTDIR)/%{docdir}/botan-$(VERSION)
PKGCONF_DIR    = $(LIBDIR)/pkgconfig

# Executable targets
APP           = %{out_dir}/botan%{program_suffix}
TEST          = %{out_dir}/botan-test%{program_suffix}

all: $(APP) $(TEST)