-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.mk
31 lines (23 loc) · 1.03 KB
/
common.mk
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
MOSTLYCLEANFILES=
BUILT_SOURCES=
CFLAGS+=$(if $(DEBUG), -g -O0)
CXXFLAGS+=$(if $(DEBUG), -g -O0)
CPPFLAGS+=$(if $(OPTIMIZE), -DNDEBUG)
CFLAGS+=$(if $(OPTIMIZE), -O3)
CXXFLAGS+=$(if $(OPTIMIZE), -O3)
CFLAGS+=$(if $(PROFILE), -pg)
CXXFLAGS+=$(if $(PROFILE), -pg)
AM_CPPFLAGS=-D'SVNVERSION="$(SVNVERSION)"' -fPIC -I$(top_srcdir)
AM_LDFLAGS=-Wl,-no-undefined
AM_CFLAGS=-Wall -Werror
AM_CXXFLAGS=-Wall -Werror
SS_THRIFT_VERSION=$(strip $(shell thrift -version | awk '{print $$3}' | awk -F'.' '{print $$1*1000+$$2*100+$$3}' | tr -cd [0-9] ))
AM_CXXFLAGS+=-D SS_THRIFT_VERSION=$(SS_THRIFT_VERSION)
_SVNVERSION=$(strip $(subst exported, 0, $(shell svnversion -nc $(srcdir) | sed 's/^.*://' | tr -cd [0-9] )))
SVNVERSION=$(if $(_SVNVERSION),$(_SVNVERSION),0)
CONFIGURE_DEPENDENCIES=$(subst @@@,,$(subst CONFIGURE_DEPENDENCIES,@,@CONFIGURE_DEPENDENCIES@))
CONFIGURE_DEPENDENCIES+=$(top_srcdir)/acsite.m4
collectlib_DIR=$(top_builddir)/_lib
collectbin_DIR=$(top_builddir)/_bin
collectinclude_DIR=$(top_builddir)/_include
include $(top_srcdir)/collect.mk