blob: 18fa897aaa0c728029ef779b24192a648ad06c0b (
plain)
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
|
MODULE := engines/sci
MODULE_OBJS = \
engine/game.o \
engine/gc.o \
engine/grammar.o \
engine/kernel.o \
engine/kevent.o \
engine/kfile.o \
engine/kgraphics.o \
engine/klists.o \
engine/kmath.o \
engine/kmenu.o \
engine/kmovement.o \
engine/kpathing.o \
engine/kscripts.o \
engine/ksound.o \
engine/kstring.o \
engine/said.o \
engine/savegame.o \
engine/scriptconsole.o \
engine/scriptdebug.o \
engine/seg_manager.o \
engine/sys_strings.o \
engine/vm.o \
gfx/antialias.o \
gfx/font.o \
gfx/font-5x8.o \
gfx/font-6x10.o \
gfx/gfx_res_options.o \
gfx/gfx_resource.o \
gfx/gfx_support.o \
gfx/gfx_tools.o \
gfx/menubar.o \
gfx/operations.o \
gfx/resmgr.o \
gfx/sbtree.o \
gfx/sci_widgets.o \
gfx/widgets.o \
gfx/drivers/scummvm_driver.o \
gfx/resource/sci_cursor_0.o \
gfx/resource/sci_font.o \
gfx/resource/sci_pal_1.o \
gfx/resource/sci_pic_0.o \
gfx/resource/sci_resmgr.o \
gfx/resource/sci_view_0.o \
gfx/resource/sci_view_1.o \
scicore/aatree.o \
scicore/console.o \
scicore/decompress0.o \
scicore/decompress01.o \
scicore/decompress1.o \
scicore/decompress11.o \
scicore/exe.o \
scicore/exe_lzexe.o \
scicore/exe_raw.o \
scicore/int_hashmap.o \
scicore/reg_t_hashmap.o \
scicore/resource.o \
scicore/resource_map.o \
scicore/resource_patch.o \
scicore/sci_memory.o \
scicore/script.o \
scicore/tools.o \
scicore/versions.o \
scicore/vocab.o \
scicore/vocab_debug.o \
scummvm/detection.o \
scummvm/scummvm_engine.o \
sfx/adlib.o \
sfx/core.o \
sfx/iterator.o \
sfx/pcm-iterator.o \
sfx/songlib.o \
sfx/time.o \
sfx/device/devices.o \
sfx/mixer/mixers.o \
sfx/mixer/soft.o \
sfx/pcm_device/pcm_devices.o \
sfx/pcm_device/scummvm.o \
sfx/player/players.o \
sfx/player/polled.o \
sfx/player/realtime.o \
sfx/seq/sequencers.o \
sfx/softseq/amiga.o \
sfx/softseq/fmopl.o \
sfx/softseq/opl2.o \
sfx/softseq/pcspeaker.o \
sfx/softseq/SN76496.o \
sfx/softseq/softsequencers.o \
sfx/timer/scummvm.o \
sfx/timer/timers.o
# FIXME: The following is supposed to be a set of *temporary* hacks
CXXFLAGS += -Wno-variadic-macros
CPPFLAGS += -DSCUMMVM
# Build .c files as C++
%.o: %.c
$(MKDIR) $(*D)/$(DEPDIR)
$(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(CXXFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
# Generate savegame.cpp
$(srcdir)/engines/sci/engine/savegame.c: $(srcdir)/engines/sci/engine/savegame.cfsml
cat $< | perl $(srcdir)/engines/sci/engine/cfsml.pl -f savegame.cfsml > $@
# This module can be built as a plugin
ifeq ($(ENABLE_SCI), DYNAMIC_PLUGIN)
PLUGIN := 1
endif
# Include common rules
include $(srcdir)/rules.mk
|