-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.global.in
More file actions
68 lines (58 loc) · 1.43 KB
/
Copy pathMakefile.global.in
File metadata and controls
68 lines (58 loc) · 1.43 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
# ----------
# Makefile.global.in
#
# Autoconf input file for Makefile.global for bgpiod
#
# Copyright (c) 2023 Marc Munro
# Author: Marc Munro
# License: GPL-3.0
#
# ----------
# location substitutions
prefix= @prefix@
datarootdir= @datarootdir@
prefix = @prefix@
MANDIR = @mandir@
PANDOC = @PANDOC@
HOST = @HOST@
PKG_BASENAME = @TARNAME@
PKG_VERSION = @VERSION@
PKGNAME = @TARNAME@-@VERSION@
TARNAME = $(PKGNAME).tar.xz
DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
DIRNAME := $(notdir $(DIR:/= ))
# Debug, memory checking, etc
DEBUG= @DEBUG@
CASSERT= @CASSERT@
# build tools
CC= gcc
#build tool flags
ifeq ($(DEBUG),yes)
# Debug settings for flags
ifeq ($(CC), gcc)
CFLAGS += -Wmissing-prototypes -Wmissing-declarations \
-Wparentheses -Wno-format-zero-length \
-Wunused-value -Werror -Wall -ggdb3 -O0
else
CFLAGS += -g -O0 -Wall
endif
LDFLAGS += -ggdb3 -O0
DBGSYM = -DDEBUG -DWITH_CASSERT
else
# Non-debug settings for flags
ifeq ($(CC), gcc)
CFLAGS += -Wmissing-prototypes -Wmissing-declarations \
-Wparentheses -Wno-format-zero-length \
-Wunused-value -Werror -Wall -ggdb3 -O1
else
CFLAGS += -g -O1 -Wall
endif
LDLAGS += -g -O1
ifeq ($(CASSERT),yes)
DBGSYM = -DWITH_CASSERT
endif
endif
override CPPFLAGS += $(DBGSYM)
LIBS = @LIBS@
DOXYGEN = @DOXYGEN@
HELP2MAN = @HELP2MAN@