-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
70 lines (65 loc) · 1.4 KB
/
Makefile.am
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
69
70
# $Id$
bin_PROGRAMS = file
#CLEANFILES =
#CPPFLAGS +=
CFLAGS += -D_BSD_SOURCE -std=gnu99
CFLAGS += -fstack-protector-all
if IS_PIE
CFLAGS += -fPIE
LDFLAGS += -pie
endif
if IS_DEBUG
CFLAGS += -O0 -g
CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align
CFLAGS += -Wdeclaration-after-statement -Wno-pointer-sign
CPPFLAGS += -DDEBUG
else !IS_DEBUG
CFLAGS += -O2
endif
dist_man1_MANS = file.1
dist_man5_MANS = magic.5
dist_file_SOURCES = \
file.c \
file.h \
magic.h \
magic-dump.c \
magic-load.c \
magic-test.c \
magic-common.c \
text.c \
xmalloc.c \
xmalloc.h
if PRCTL
dist_file_SOURCES += seccomp-sandbox.c
endif
nodist_file_SOURCES =
if NO_SETRESGID
nodist_file_SOURCES += compat/setresgid.c
endif
if NO_SETRESUID
nodist_file_SOURCES += compat/setresuid.c
endif
if NO_STRLCAT
nodist_file_SOURCES += compat/strlcat.c
endif
if NO_STRLCPY
nodist_file_SOURCES += compat/strlcpy.c
endif
if NO_EXPLICIT_BZERO
nodist_file_SOURCES += compat/explicit_bzero.c
endif
if NO_FREEZERO
nodist_file_SOURCES += compat/freezero.c
endif
if NO_IMSG
nodist_file_SOURCES += compat/imsg-buffer.c compat/imsg.c
endif
if NO_REALLOCARRAY
nodist_file_SOURCES += compat/reallocarray.c
endif
if NO_VIS
nodist_file_SOURCES += compat/vis.c
endif