blob: 84256ef674031c5b94cb54165fb935b5f943d121 (
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
|
# $Header$
# This file is used by Makefile, Makefile.irix, Makefile.macosx and declares
# common rules, a list of common object files etc.
ZIPFILE := scummvm-`date '+%Y-%m-%d'`.zip
INCS = scumm.h scummsys.h stdafx.h
OBJS += util.o newgui.o gui/widget.o gui/dialog.o \
gui/ListWidget.o gui/ScrollBarWidget.o \
actor.o akos.o boxes.o bundle.o config-file.o costume.o debug.o \
debugrl.o engine.o gameDetector.o gfx.o gui.o insane.o main.o object.o \
resource.o saveload.o scaler.o script.o script_v1.o script_v2.o \
scummvm.o sound.o string.o sys.o timer.o vars.o verbs.o \
sound/imuse.o sound/fmopl.o sound/mixer.o \
v3/resource_v3.o v4/resource_v4.o \
simon/midi.o simon/simon.o simon/simonsys.o simon/simonvga.o \
simon/simondebug.o simon/simonres.o simon/simonitems.o simon/simonverb.o \
sound/mididrv.o
DISTFILES=$(OBJS:.o=.cpp) Makefile scummvm.dsp scummvm.dsw stdafx.cpp \
whatsnew.txt readme.txt copying.txt \
actor.h akos.h boxes.h bundle.h cmdline.h config-file.h costume.h debug.h \
debugrl.h engine.h fb2opengl.h gameDetector.h gapi_keys.h gfx.h gui.h guimaps.h \
newgui.h object.h resource.h saveload.h scaler.h scumm.h scummsys.h smush.h \
sound.h stdafx.h system.h timer.h util.h sound/fmopl.h
all: scummvm$(EXEEXT)
scummvm$(EXEEXT): $(OBJS)
$(CC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS)
clean:
rm -f $(OBJS) scummvm$(EXEEXT)
.PHONY: all clean dist
# Default (dumb) compile & dependcy rules
.cpp.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
$(OBJS): $(INCS)
# If you use GCC, disable the above and enable this for intelligent
# dependency tracking.
#DEPDIR := .deps
#.cpp.o:
# mkdir -p $(DEPDIR)
# $(CC) -Wp,-MMD,"$(DEPDIR)/$(*F).d2" $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
# echo -n "$(*D)/" > $(DEPDIR)/$(*F).d
# cat "$(DEPDIR)/$(*F).d2" >> "$(DEPDIR)/$(*F).d"
# rm -f "$(DEPDIR)/$(*F).d2"
#
#-include $(DEPDIR)/*.d
|