-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
84 lines (66 loc) · 2.31 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
SUBDIRS = src doc
if XINETD
xinetddir = $(sysconfdir)/xinetd.d
xinetd_DATA = netmaumau
endif
noinst_SCRIPTS = start-server.sh
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = COPYING THANKS netmaumau.ico netmaumau.xinetd.in netmaumau.pc.in start-server.sh.in \
netmaumau.h2m.in nmm-server.bc.in
if XINETD
CLEANFILES = netmaumau
endif
DISTCLEANFILES = $(PACKAGE_NAME)-dbg.db start-server.sh nmm-server
if ENABLE_CLIENT
DISTCLEANFILES += netmaumau.pc
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = netmaumau.pc
netmaumau.pc: $(top_srcdir)/netmaumau.pc.in
$(AM_V_GEN)$(SED) \
-e 's|@prefix[@]|$(prefix)|g' \
-e 's|@exec_prefix[@]|$(exec_prefix)|g' \
-e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \
-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
-e 's|@bindir[@]|$(bindir)|g' \
-e 's|@libdir[@]|$(libdir)|g' \
-e 's|@pkgincludedir[@]|$(pkgincludedir)|g' \
-e 's|@CLIENTVERSION[@]|$(CLIENTVERSION)|g' < $< > $@
endif
AM_DISTCHECK_CONFIGURE_FLAGS = --disable-client --enable-console-client --enable-pidfile \
--with-bashcompletiondir=no --enable-threads
if XINETD
if MICROHTTPD
ADDWEBSERVER=-W
endif
netmaumau: $(top_srcdir)/netmaumau.xinetd.in
$(AM_V_GEN)$(SED) -e 's|@bindir[@]|$(bindir)|g' \
-e 's|@ADDWEBSERVER[@]|$(ADDWEBSERVER)|g'< $< > $@
endif
start-server.sh: $(top_srcdir)/start-server.sh.in
$(AM_V_GEN)$(SED) \
-e 's|@SRCDIR[@]|$(abs_top_srcdir)|g' \
-e 's|@BUILDDIR[@]|$(abs_top_builddir)|g' < $< > $@
@chmod +x $@
if CHECKCPP
# suppression template: // cppcheck-suppress {id}
cppcheck:
@echo "Running $(CPPCHECK) …" ; \
$(CPPCHECK) $(srcdir)/src -q --inline-suppr --enable=style,performance \
--std=posix --std=c++03 --template="{file}:{line}: {severity}: {message} ({id})" \
--inconclusive -I$(abs_top_builddir) -I$(abs_top_srcdir)/src/ai \
-I$(abs_top_srcdir)/src/client -I$(abs_top_srcdir)/src/common \
-I$(abs_top_srcdir)/src/engine -I$(abs_top_srcdir)/src/images \
-I$(abs_top_srcdir)/src/include -I$(abs_top_srcdir)/src/lua \
-I$(abs_top_srcdir)/src/server -I$(abs_top_srcdir)/src/sqlite \
-I$(abs_top_builddir)/src/common -i$(srcdir)/src/test
endif
if ENABLE_DEHEADER
deheader:
$(MAKE) -C$(top_builddir)/src deheader
endif
bashcompdir = @bashcompdir@
if INSTALL_BASHCOMP
dist_bashcomp_DATA = nmm-server
nmm-server: nmm-server.bc.in
$(AM_V_GEN)$(SED) -e 's|@bindir[@]|$(bindir)|g' < $< > $@
endif