1include $(dir $(lastword $(MAKEFILE_LIST)))../header.mk
2
3aegisub_OBJ := \
4	$(d)common/parser.o \
5	$(d)ass/dialogue_parser.o \
6	$(d)ass/time.o \
7	$(subst .cpp,.o,$(wildcard $(d)audio/*.cpp)) \
8	$(subst .cpp,.o,$(wildcard $(d)common/cajun/*.cpp)) \
9	$(subst .cpp,.o,$(wildcard $(d)lua/modules/*.cpp)) \
10	$(subst .c,.o,$(wildcard $(d)lua/modules/*.c)) \
11	$(subst .cpp,.o,$(wildcard $(d)lua/*.cpp)) \
12	$(subst .cpp,.o,$(wildcard $(d)unix/*.cpp)) \
13	$(d)common/calltip_provider.o \
14	$(d)common/character_count.o \
15	$(d)common/charset.o \
16	$(d)common/charset_6937.o \
17	$(d)common/charset_conv.o \
18	$(d)common/color.o \
19	$(d)common/file_mapping.o \
20	$(d)common/format.o \
21	$(d)common/fs.o \
22	$(d)common/hotkey.o \
23	$(d)common/io.o \
24	$(d)common/json.o \
25	$(d)common/kana_table.o \
26	$(d)common/karaoke_matcher.o \
27	$(d)common/keyframe.o \
28	$(d)common/log.o \
29	$(d)common/mru.o \
30	$(d)common/option.o \
31	$(d)common/path.o \
32	$(d)common/thesaurus.o \
33	$(d)common/util.o \
34	$(d)common/vfr.o \
35	$(d)common/ycbcr_conv.o
36
37ifeq (yes, $(BUILD_DARWIN))
38aegisub_OBJ += $(subst .mm,.o,$(wildcard $(d)osx/*.mm))
39else
40aegisub_OBJ += $(d)common/dispatch.o
41endif
42
43aegisub_PCH := $(d)lagi_pre.h
44aegisub_CPPFLAGS := -I$(d)include -I$(TOP) -fPIC $(CPPFLAGS_BOOST) $(CFLAGS_LUA)
45
46$(d)common/charset_conv.o_FLAGS := $(CFLAGS_ICONV)
47$(d)common/parser.o_FLAGS := -ftemplate-depth=256
48$(d)unix/path.o_FLAGS := -DP_DATA=\"$(P_DATA)\"
49
50LIB += aegisub
51
52include $(TOP)Makefile.target
53