2010-12-05 19:12:42 +00:00
|
|
|
include ../Makefile.inc
|
|
|
|
|
2014-03-31 09:59:09 -07:00
|
|
|
GTEST_ROOT = ../vendor/googletest
|
|
|
|
|
2010-12-05 19:12:42 +00:00
|
|
|
PROGRAM = run
|
|
|
|
|
2014-03-10 10:22:28 -07:00
|
|
|
LIBS += -L../libaegisub -laegisub -L../vendor/universalchardet -luniversalchardet $(LIBS_BOOST) $(LIBS_ICU)
|
2011-12-22 21:24:40 +00:00
|
|
|
LDFLAGS += -Wl,-rpath $(CURDIR)/../libaegisub $(LDFLAGS_ICONV)
|
2010-12-05 19:12:42 +00:00
|
|
|
|
2013-02-01 19:22:11 -08:00
|
|
|
CPPFLAGS += -I../src/include -I../libaegisub/include $(CFLAGS_ICONV) -I${GTEST_ROOT} -I${GTEST_ROOT}/include -I./support $(CPPFLAGS_BOOST)
|
2013-02-02 06:55:43 -08:00
|
|
|
CXXFLAGS += -Wno-unused-value -Wno-sign-compare
|
2010-12-05 19:12:42 +00:00
|
|
|
|
2014-04-25 08:44:11 -07:00
|
|
|
PRECOMPILED_HEADER_NAME = ../libaegisub/lagi_pre.h
|
|
|
|
|
2012-03-11 23:04:42 +00:00
|
|
|
ifeq (yes, $(BUILD_DARWIN))
|
2013-01-04 07:01:50 -08:00
|
|
|
LDFLAGS += -framework ApplicationServices -framework Foundation
|
2010-12-05 19:12:42 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
SRC = \
|
2013-01-31 06:39:31 -08:00
|
|
|
support/main.cpp \
|
|
|
|
support/util.cpp \
|
|
|
|
support/util_unix.cpp \
|
|
|
|
tests/access.cpp \
|
|
|
|
tests/cajun.cpp \
|
|
|
|
tests/color.cpp \
|
|
|
|
tests/dialogue_lexer.cpp \
|
2013-02-02 06:44:13 -08:00
|
|
|
tests/fs.cpp \
|
2013-01-31 06:39:31 -08:00
|
|
|
tests/hotkey.cpp \
|
|
|
|
tests/iconv.cpp \
|
2013-01-30 07:26:16 -08:00
|
|
|
tests/ifind.cpp \
|
2013-07-13 08:26:09 -07:00
|
|
|
tests/karaoke_matcher.cpp \
|
2013-01-31 06:39:31 -08:00
|
|
|
tests/keyframe.cpp \
|
|
|
|
tests/line_iterator.cpp \
|
|
|
|
tests/line_wrap.cpp \
|
|
|
|
tests/mru.cpp \
|
|
|
|
tests/option.cpp \
|
|
|
|
tests/path.cpp \
|
|
|
|
tests/signals.cpp \
|
|
|
|
tests/syntax_highlight.cpp \
|
|
|
|
tests/thesaurus.cpp \
|
|
|
|
tests/util.cpp \
|
2013-02-07 09:36:47 -08:00
|
|
|
tests/uuencode.cpp \
|
2013-01-31 06:39:31 -08:00
|
|
|
tests/vfr.cpp \
|
|
|
|
tests/word_split.cpp \
|
2012-11-07 07:37:46 -08:00
|
|
|
${GTEST_ROOT}/src/gtest-all.cc
|
2012-11-06 16:26:00 -08:00
|
|
|
|
2013-01-31 06:39:31 -08:00
|
|
|
HEADER = support/*.h tests/*.h
|
2010-12-05 19:12:42 +00:00
|
|
|
|
|
|
|
include ../Makefile.target
|
2014-03-31 10:22:54 -07:00
|
|
|
-include support/*.d
|
|
|
|
-include tests/*.d
|