forked from weimingtom/onscripter_jh_sdl2_fork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.onscripter
138 lines (116 loc) · 4.09 KB
/
Makefile.onscripter
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# -*- Makefile -*-
#
# Makefile.onscripter - General makefile rules for ONScripter
#
GUI_OBJS = ONScripter$(OBJSUFFIX) \
ONScripter_animation$(OBJSUFFIX) \
ONScripter_command$(OBJSUFFIX) \
ONScripter_effect$(OBJSUFFIX) \
ONScripter_effect_breakup$(OBJSUFFIX) \
ONScripter_event$(OBJSUFFIX) \
ONScripter_file$(OBJSUFFIX) \
ONScripter_file2$(OBJSUFFIX) \
ONScripter_image$(OBJSUFFIX) \
ONScripter_lut$(OBJSUFFIX) \
ONScripter_rmenu$(OBJSUFFIX) \
ONScripter_sound$(OBJSUFFIX) \
ONScripter_text$(OBJSUFFIX) \
AnimationInfo$(OBJSUFFIX) \
FontInfo$(OBJSUFFIX) \
DirtyRect$(OBJSUFFIX) \
resize_image$(OBJSUFFIX) \
ONScripter_directdraw$(OBJSUFFIX) \
builtin_dll/layer_snow$(OBJSUFFIX) \
builtin_dll/ONScripter_effect_cascade$(OBJSUFFIX) \
builtin_dll/ONScripter_effect_trig$(OBJSUFFIX) \
builtin_dll/layer_oldmovie$(OBJSUFFIX)
DECODER_OBJS = DirectReader$(OBJSUFFIX) \
SarReader$(OBJSUFFIX) \
NsaReader$(OBJSUFFIX) \
sjis2utf16$(OBJSUFFIX) \
coding2utf16$(OBJSUFFIX) \
gbk2utf16$(OBJSUFFIX)
SARDEC_OBJS = sardec$(OBJSUFFIX) \
DirectReader$(OBJSUFFIX) \
SarReader$(OBJSUFFIX) \
sjis2utf16$(OBJSUFFIX)
SARCONV_OBJS = sarconv$(OBJSUFFIX) \
conv_shared$(OBJSUFFIX) \
resize_image$(OBJSUFFIX) \
DirectReader$(OBJSUFFIX) \
SarReader$(OBJSUFFIX) \
sjis2utf16$(OBJSUFFIX)
NSADEC_OBJS = nsadec$(OBJSUFFIX) \
$(DECODER_OBJS)
NSACONV_OBJS = nsaconv$(OBJSUFFIX) \
conv_shared$(OBJSUFFIX) \
resize_image$(OBJSUFFIX) \
$(DECODER_OBJS)
ONSCRIPTER_OBJS = onscripter_main$(OBJSUFFIX) \
$(DECODER_OBJS) \
ScriptHandler$(OBJSUFFIX) \
ScriptParser$(OBJSUFFIX) \
ScriptParser_command$(OBJSUFFIX) \
$(GUI_OBJS) $(EXT_OBJS)
PARSER_HEADER = BaseReader.h \
ButtonLink.h \
DirectReader.h \
SarReader.h \
NsaReader.h \
ScriptHandler.h \
ScriptParser.h \
AnimationInfo.h \
FontInfo.h \
DirtyRect.h \
LUAHandler.h
ONSCRIPTER_HEADER = ONScripter.h $(PARSER_HEADER)
ALL: $(TARGET)
sardec$(EXESUFFIX): $(SARDEC_OBJS)
$(LD) $(LDOUT)$@ $(SARDEC_OBJS) $(LIBS)
sarconv$(EXESUFFIX): $(SARCONV_OBJS)
$(LD) $(LDOUT)$@ $(SARCONV_OBJS) $(LIBS)
nsadec$(EXESUFFIX): $(NSADEC_OBJS)
$(LD) $(LDOUT)$@ $(NSADEC_OBJS) $(LIBS)
nsaconv$(EXESUFFIX): $(NSACONV_OBJS)
$(LD) $(LDOUT)$@ $(NSACONV_OBJS) $(LIBS)
simple_aviplay$(EXESUFFIX): simple_aviplay$(OBJSUFFIX) AVIWrapper$(OBJSUFFIX)
$(LD) $(LDOUT)$@ simple_aviplay$(OBJSUFFIX) AVIWrapper$(OBJSUFFIX) $(LIBS)
onscripter$(EXESUFFIX): $(ONSCRIPTER_OBJS)
$(LD) $< $(ONSCRIPTER_OBJS) $(LIBS) $(EXT_FLAGS) -o onscripter$(EXESUFFIX)
clean:
-$(RM) $(TARGET)
-$(RM) *$(OBJSUFFIX)
-$(RM) builtin_dll/*$(OBJSUFFIX)
.cpp$(OBJSUFFIX):
$(CC) $(CFLAGS) -o $@ $<
SarReader$(OBJSUFFIX): BaseReader.h SarReader.h
NsaReader$(OBJSUFFIX): BaseReader.h SarReader.h NsaReader.h
DirectReader$(OBJSUFFIX): BaseReader.h DirectReader.h
ScriptHandler$(OBJSUFFIX): ScriptHandler.h
ScriptParser$(OBJSUFFIX): $(PARSER_HEADER)
ScriptParser_command$(OBJSUFFIX): $(PARSER_HEADER)
sardec$(OBJSUFFIX): BaseReader.h SarReader.h
sarconv$(OBJSUFFIX): BaseReader.h SarReader.h
nsadec$(OBJSUFFIX): BaseReader.h SarReader.h NsaReader.h
nsaconv$(OBJSUFFIX): BaseReader.h SarReader.h NsaReader.h
simple_aviplay$(OBJSUFFIX): AVIWrapper.h
conv_shared$(OBJSUFFIX): resize_image.h
onscripter_main$(OBJSUFFIX): $(ONSCRIPTER_HEADER) version.h
ONScripter$(OBJSUFFIX): $(ONSCRIPTER_HEADER)
ONScripter_command$(OBJSUFFIX): $(ONSCRIPTER_HEADER) version.h
ONScripter_text$(OBJSUFFIX): $(ONSCRIPTER_HEADER)
ONScripter_effect$(OBJSUFFIX): $(ONSCRIPTER_HEADER)
ONScripter_effect_breakup$(OBJSUFFIX): $(ONSCRIPTER_HEADER)
ONScripter_event$(OBJSUFFIX): $(ONSCRIPTER_HEADER)
ONScripter_rmenu$(OBJSUFFIX): $(ONSCRIPTER_HEADER)
ONScripter_animation$(OBJSUFFIX): $(ONSCRIPTER_HEADER)
ONScripter_sound$(OBJSUFFIX): $(ONSCRIPTER_HEADER)
ONScripter_file$(OBJSUFFIX): $(ONSCRIPTER_HEADER)
ONScripter_file2$(OBJSUFFIX): $(ONSCRIPTER_HEADER)
ONScripter_image$(OBJSUFFIX): $(ONSCRIPTER_HEADER) resize_image.h
ONScripter_lut$(OBJSUFFIX): $(ONSCRIPTER_HEADER)
AnimationInfo$(OBJSUFFIX): AnimationInfo.h
FontInfo$(OBJSUFFIX): FontInfo.h
DirtyRect$(OBJSUFFIX) : DirtyRect.h
AVIWrapper$(OBJSUFFIX): AVIWrapper.h
LUAHandler$(OBJSUFFIX): $(ONSCRIPTER_HEADER) LUAHandler.h