Blame GNUmakefile.am

Packit Service 7770af
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 -I script
Packit Service 7770af
Packit Service 7770af
AM_COPT = -Wall -O2
Packit Service 7770af
AM_COVLDFLAGS =
Packit Service 7770af
Packit Service 7770af
if ENABLE_COVERAGE
Packit Service 7770af
	AM_COPT = -Wall -O1 -fno-omit-frame-pointer --coverage
Packit Service 7770af
	AM_COVLDFLAGS += -lgcov
Packit Service 7770af
endif
Packit Service 7770af
Packit Service 7770af
AM_CPPFLAGS = -I$(top_srcdir)/include
Packit Service 7770af
AM_CFLAGS   = $(AM_COPT)
Packit Service 7770af
AM_CXXFLAGS = $(AM_COPT)
Packit Service 7770af
AM_LDFLAGS  = $(AM_COPT) $(AM_COVLDFLAGS)
Packit Service 7770af
Packit Service 7770af
# only needed to support old source tree
Packit Service 7770af
# we have moved the files to src folder
Packit Service 7770af
AM_CPPFLAGS += -I$(top_srcdir)
Packit Service 7770af
Packit Service 7770af
RESOURCES =
Packit Service 7770af
if COMPILER_IS_MINGW32
Packit Service 7770af
  RESOURCES += res/libsass.rc
Packit Service 7770af
  AM_CXXFLAGS += -std=gnu++0x
Packit Service 7770af
else
Packit Service 7770af
  AM_CXXFLAGS += -std=c++0x
Packit Service 7770af
endif
Packit Service 7770af
Packit Service 7770af
if ENABLE_TESTS
Packit Service 7770af
Packit Service 7770af
noinst_PROGRAMS = tester
Packit Service 7770af
Packit Service 7770af
tester_LDADD = src/libsass.la
Packit Service 7770af
tester_SOURCES = $(SASS_SASSC_PATH)/sassc.c
Packit Service 7770af
tester_VERSION ?= `cd "$(SASS_SASSC_PATH)" && ./version.sh`
Packit Service 7770af
tester_CFLAGS = $(AM_CFLAGS) -DSASSC_VERSION="\"$(tester_VERSION)\""
Packit Service 7770af
tester_CXXFLAGS = $(AM_CXXFLAGS) -DSASSC_VERSION="\"$(tester_VERSION)\""
Packit Service 7770af
tester_LDFLAGS = $(AM_LDFLAGS)
Packit Service 7770af
Packit Service 7770af
if ENABLE_COVERAGE
Packit Service 7770af
nodist_EXTRA_tester_SOURCES = non-existent-file-to-force-CXX-linking.cxx
Packit Service 7770af
endif
Packit Service 7770af
Packit Service 7770af
SASS_SASSC_PATH ?= $(top_srcdir)/sassc
Packit Service 7770af
SASS_SPEC_PATH ?= $(top_srcdir)/sass-spec
Packit Service 7770af
Packit Service 7770af
TESTS = \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/basic \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/css \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/extend-tests \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/extends \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/libsass \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/libsass-closed-issues \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/maps \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/misc \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/regressions \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/scss \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/scss-tests \
Packit Service 7770af
	$(SASS_SPEC_PATH)/spec/types
Packit Service 7770af
Packit Service 7770af
SASS_TEST_FLAGS = -V 3.4 --impl libsass
Packit Service 7770af
LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) ./script/tap-driver
Packit Service 7770af
AM_LOG_FLAGS = -c ./tester $(LOG_FLAGS)
Packit Service 7770af
if USE_TAP
Packit Service 7770af
	AM_LOG_FLAGS += -t
Packit Service 7770af
	SASS_TEST_FLAGS += -t | tapout
Packit Service 7770af
	LOG_COMPILER = ./script/tap-runner $(RUBY) $(SASS_SPEC_PATH)/sass-spec.rb
Packit Service 7770af
else
Packit Service 7770af
	LOG_COMPILER = $(RUBY) $(SASS_SPEC_PATH)/sass-spec.rb
Packit Service 7770af
endif
Packit Service 7770af
Packit Service 7770af
SASS_TESTER = $(RUBY) $(SASS_SPEC_PATH)/sass-spec.rb
Packit Service 7770af
SASS_TESTER += -c $(SASS_LIBSASS_PATH)/tester$(EXEEXT)
Packit Service 7770af
Packit Service 7770af
test:
Packit Service 7770af
	$(SASS_TESTER) $(LOG_FLAGS) $(SASS_SPEC_PATH) $(SASS_TEST_FLAGS)
Packit Service 7770af
Packit Service 7770af
test_build:
Packit Service 7770af
	$(SASS_TESTER) $(LOG_FLAGS) $(SASS_SPEC_PATH) $(SASS_TEST_FLAGS)
Packit Service 7770af
Packit Service 7770af
test_full:
Packit Service 7770af
	$(SASS_TESTER) --run-todo $(LOG_FLAGS) $(SASS_SPEC_PATH) $(SASS_TEST_FLAGS)
Packit Service 7770af
Packit Service 7770af
test_probe:
Packit Service 7770af
	$(SASS_TESTER) --probe-todo $(LOG_FLAGS) $(SASS_SPEC_PATH) $(SASS_TEST_FLAGS)
Packit Service 7770af
Packit Service 7770af
endif
Packit Service 7770af
Packit Service 7770af
SUBDIRS = src