-
Notifications
You must be signed in to change notification settings - Fork 132
/
GNUmakefile.am
45 lines (37 loc) · 973 Bytes
/
GNUmakefile.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
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 -I script
AM_COPT = -Wall -O2
AM_COVLDFLAGS =
if ENABLE_COVERAGE
AM_COPT = -O0 --coverage
AM_COVLDFLAGS += -lgcov
endif
AM_CPPFLAGS = -I$(top_srcdir)/include
AM_CFLAGS = $(AM_COPT)
AM_CXXFLAGS = $(AM_COPT)
AM_LDFLAGS = $(AM_COPT) $(AM_COVLDFLAGS)
# only needed to support old source tree
# we have moved the files to src folder
AM_CPPFLAGS += -I$(top_srcdir)
SOURCES = sassc.c
if COMPILER_IS_MINGW32
SOURCES += res/libsass.rc
AM_CXXFLAGS += -std=gnu++0x
AM_LDFLAGS += -std=gnu++0x
else
AM_CXXFLAGS += -std=c++0x
AM_LDFLAGS += -std=c++0x
endif
if ENABLE_COVERAGE
AM_CFLAGS += -O0 --coverage
AM_CXXFLAGS += -O0 --coverage
AM_LDFLAGS += -O0 --coverage -lgcov
else
AM_CFLAGS += -O2
AM_CXXFLAGS += -O2
endif
bin_PROGRAMS = sassc
sassc_SOURCES = $(SOURCES)
sassc_LDFLAGS = $(AM_LDFLAGS)
# Dummy C++ source to cause C++ linking.
# Otherwise the plain C linker is used
nodist_EXTRA_sassc_SOURCES = dummy.cxx