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