aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile/gmake.in
blob: 15e0277e6cb7aa94a8054b8e734394f0a4b132a3 (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
%{header_in}

COPY             = cp
LN               = ln -fs

# Library targets
LIB_BASENAME  = %{lib_basename}
STATIC_LIB    = %{out_dir}/$(LIB_BASENAME).%{static_suffix}
LIBRARIES     = $(STATIC_LIB)

# Link Commands
%{gmake_dso_in}

libs: $(LIBRARIES)

$(CLI): $(LIBRARIES) $(CLIOBJS)
	$(CLI_LINK_CMD) $(LDFLAGS) $(CLIOBJS) $(CLI_LINKS_TO) -o $(CLI)
	$(CLI_POST_LINK_CMD)

$(TEST): $(LIBRARIES) $(TESTOBJS)
	$(TEST_LINK_CMD) $(LDFLAGS) $(TESTOBJS) $(TEST_LINKS_TO) -o $(TEST)
	$(TEST_POST_LINK_CMD)

$(STATIC_LIB): $(LIBOBJS)
	$(AR) %{ar_options} $(STATIC_LIB) $(LIBOBJS)

# Fake targets
.PHONY: clean distclean docs install valgrind lcov

%{gmake_coverage_in}

%{gmake_fuzzers_in}

valgrind:
	valgrind --log-file=botan.%%p.log -v --track-origins=yes --leak-check=full --show-reachable=yes ./botan-test