-
Notifications
You must be signed in to change notification settings - Fork 108
/
Makefile.am
44 lines (35 loc) · 1.28 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
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = conf doc web admin src
if WINDOWS
SUBDIRS += windows
endif
BUILT_SOURCES = git_hash.h
dist_check_SCRIPTS = GIT-VERSION-GEN
CLEANFILES = git_hash.h
EXTRA_DIST = HACKING config.h.vc6 m4/acx_pthread.m4 m4/ogg.m4 \
m4/theora.m4 m4/vorbis.m4 m4/speex.m4\
m4/xiph_compiler.m4 m4/xiph_curl.m4 m4/xiph_net.m4 \
m4/xiph_types.m4 m4/xiph_xml2.m4 m4/xiph_openssl.m4 icecast.spec
docdir = $(datadir)/doc/$(PACKAGE)
doc_DATA = README AUTHORS COPYING NEWS TODO
git_hash.h: FORCE
@$(SHELL_PATH) $(srcdir)/GIT-VERSION-GEN
FORCE:
# example build line
# make CFLAGS="-O2 -s -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -ffile-prefix-map=$(pwd)=" CXXFLAGS='$(CFLAGS)' V=1
# V=1 to show lines
# file-prefix-map to filter out absolute path lines in binary
#
debug:
$(MAKE) all CFLAGS="-Wno-unused-parameter @DEBUG@"
win64:
$(MAKE) all CFLAGS="-O2 -s" CXXFLAGS="-O2 -s"
win32:
$(MAKE) all CFLAGS="-O2 -s" CXXFLAGS="-O2 -s"
profile:
$(MAKE) all CFLAGS="@PROFILE@"
staticdebug:
$(MAKE) all CFLAGS="-g -DLIBXML_STATIC -DCURL_STATICLIB" LDFLAGS="${LDFLAGS} -all-static"
static:
$(MAKE) all CFLAGS="-O2 -DLIBXML_STATIC -DCURL_STATICLIB" LDFLAGS="${LDFLAGS} -static-libstdc++" CXXFLAGS=