-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
113 lines (88 loc) · 3.54 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
## Automake Makefile for mdnsd
ACLOCAL_AMFLAGS = -I m4 --install
SUBDIRS = tests
CC = @CC@
RM_PROG = @RM_PROG@
AM_CFLAGS = -g -O1 -Wall -Wextra -Wimplicit -Wformat=2 -Wswitch \
-Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition \
-Wuninitialized -Winit-self -Wparentheses -Wwrite-strings \
-fstack-protector -Wstack-protector \
-fstrict-aliasing -Wstrict-aliasing \
-std=gnu99 \
-Wno-unused -Wno-unused-parameter \
-Wno-pointer-sign -Wno-sign-compare
EXEEXT = @EXEEXT@
CLANG_ANALYZER = @CLANG_ANALYZER@
RUN_CLANG_ANALYZER = $(CLANG_ANALYZER) $(DEFS) $(DEFAULT_INCLUDES) \
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
--analyze
analysisdir = $(builddir)/clang_static_analysis
all: mquery$(EXEEXT) mhttp$(EXEEXT)
bin_PROGRAMS = mhttp mquery
mhttp_SOURCES = mhttp_main.c
mhttp_LDADD = libmdnsd.la
mquery_SOURCES = mquery_main.c
mquery_LDADD = libmdnsd.la
lib_LTLIBRARIES = libmdnsd.la
libmdnsd_la_SOURCES = 1035.c mdnsd.c mhttp.c mquery.c msock.c sdtxt.c xht.c
include_HEADERS = 1035.h mdnsd.h mhttp.h mquery.h msock.h sdtxt.h xht.h
ALL_PLISTS = 1035.plist mdnsd.plist mhttp_main.plist mhttp.plist \
mquery_main.plist mquery.plist msock.plist sdtxt.plist xht.plist
SUFFIXES = .c .o .plist
.c.plist:
@if test ! -d $(analysisdir); then $(MKDIR_P) $(analysisdir); fi
$(RUN_CLANG_ANALYZER) -o $(analysisdir)/$@ $<
MOSTLYCLEANFILES = config.h.in~
clean-local:
$(RM_PROG) -f mquery$(EXEEXT) mhttp$(EXEEXT)
$(RM_PROG) -f *.o *~ config/*~
$(RM_PROG) -rf *.dSYM *.cache
CLEANFILES = *~ core config/*~
distclean-local: @MAINT@ distdir-clean
$(RM_PROG) -rf .deps || rmdir .deps
$(RM_PROG) -rf autom4te.cache || rmdir autom4te.cache
DISTCLEANFILES = .DS_Store $(analysisdir)/.DS_Store autoscan.log
maintainer-clean-local:
for plist in $(ALL_PLISTS); do \
test -e $(analysisdir)/$${plist} && $(RM_PROG) -f $(analysisdir)/$${plist}; \
done
$(RM_PROG) -rf $(analysisdir) || rmdir $(analysisdir)
$(RM_PROG) -f $(DIST_ARCHIVES)
MAINTAINERCLEANFILES = configure.scan
nodist_noinst_DATA = @MAINT@ configure.scan
DISTCHECK_CONFIGURE_FLAGS = --disable-silent-rules
.PHONY: distdir-clean
distdir-clean:
if test -d $(distdir) && test -w $(distdir); then \
rm -rf $(distdir) || rmdir $(distdir) || stat $(distdir); \
fi
configure.scan: distdir-clean
autoscan || touch $@
PHONY: update-ChangeLog
##FIXME: ChangeLog sometimes ends up with excess whitespace at the start;
## find a way to filter that out:
update-ChangeLog:
if test -d $(srcdir)/.git && test -r $(srcdir)/.last-cl-gen; then \
$(srcdir)/build-aux/gitlog-to-changelog \
--format='%s%n%n%b%n' --no-cluster \
--strip-tab --strip-cherry-pick \
-- $$(cat $(srcdir)/.last-cl-gen).. \
>ChangeLog.tmp \
&& git rev-list -n 1 HEAD >.last-cl-gen.tmp \
&& (if test -s $(srcdir)/ChangeLog; then \
echo ""; else echo "warning: empty ChangeLog"; \
fi; cat $(srcdir)/ChangeLog) >>ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(srcdir)/ChangeLog \
&& mv -f .last-cl-gen.tmp $(srcdir)/.last-cl-gen \
&& rm -f ChangeLog.tmp; \
else \
echo "You will have to update the ChangeLog manually."; \
fi
EXTRA_DIST = .last-cl-gen
dist-hook: clean @MAINT@ update-ChangeLog
ls
## using dependencies for the plists could go wrong, so call them as part
## of the rule instead:
check-local: all
$(MKDIR_P) $(analysisdir)
$(MAKE) $(ALL_PLISTS)