2002-04-26 13:39:31 +00:00
|
|
|
# $Header$
|
|
|
|
# This file is used by Makefile, Makefile.irix, Makefile.macosx and declares
|
|
|
|
# common rules, a list of common object files etc.
|
|
|
|
|
2002-08-21 16:28:19 +00:00
|
|
|
# List of all sub modules
|
2002-08-25 11:07:34 +00:00
|
|
|
MODULES += common gui scumm simon sound scumm/smush
|
2002-08-21 16:28:19 +00:00
|
|
|
|
2002-04-26 13:39:31 +00:00
|
|
|
ZIPFILE := scummvm-`date '+%Y-%m-%d'`.zip
|
|
|
|
|
2002-08-21 16:07:07 +00:00
|
|
|
INCS = scumm/scumm.h common/scummsys.h common/stdafx.h
|
|
|
|
|
2002-09-08 01:08:12 +00:00
|
|
|
COMMON_OBJS = common/config-file.o common/engine.o common/file.o \
|
|
|
|
common/gameDetector.o common/main.o common/scaler.o common/str.o \
|
|
|
|
common/timer.o common/util.o
|
2002-08-21 16:07:07 +00:00
|
|
|
|
|
|
|
GUI_OBJS = gui/gui.o gui/newgui.o gui/widget.o gui/dialog.o gui/ListWidget.o \
|
|
|
|
gui/ScrollBarWidget.o
|
|
|
|
|
|
|
|
SCUMM_OBJS = scumm/actor.o scumm/akos.o scumm/boxes.o scumm/bundle.o \
|
2002-08-21 16:53:11 +00:00
|
|
|
scumm/costume.o scumm/debug.o scumm/debugrl.o scumm/gfx.o scumm/imuse.o \
|
2002-08-29 16:57:43 +00:00
|
|
|
scumm/object.o scumm/resource.o scumm/resource_v2.o scumm/resource_v3.o \
|
2002-08-23 06:43:06 +00:00
|
|
|
scumm/resource_v4.o scumm/saveload.o scumm/script.o \
|
2002-08-29 23:45:15 +00:00
|
|
|
scumm/script_v1.o scumm/script_v2.o scumm/scummvm.o scumm/sound.o \
|
2002-09-20 05:57:07 +00:00
|
|
|
scumm/string.o scumm/vars.o scumm/verbs.o scumm/dialogs.o
|
2002-08-21 16:07:07 +00:00
|
|
|
|
|
|
|
SIMON_OBJS = simon/debug.o simon/items.o simon/midi.o simon/res.o simon/simon.o \
|
2002-09-16 08:22:30 +00:00
|
|
|
simon/verb.o simon/vga.o
|
2002-08-21 16:07:07 +00:00
|
|
|
|
2002-08-24 16:26:09 +00:00
|
|
|
SMUSH_OBJS = scumm/smush/blitter.o \
|
|
|
|
scumm/smush/brenderer.o \
|
2002-08-24 17:18:55 +00:00
|
|
|
scumm/smush/chunk.o \
|
2002-08-24 16:26:09 +00:00
|
|
|
scumm/smush/codec1.o \
|
|
|
|
scumm/smush/codec37.o \
|
|
|
|
scumm/smush/codec44.o \
|
|
|
|
scumm/smush/codec47.o \
|
|
|
|
scumm/smush/color.o \
|
|
|
|
scumm/smush/frenderer.o \
|
|
|
|
scumm/smush/imuse_channel.o \
|
|
|
|
scumm/smush/player.o \
|
|
|
|
scumm/smush/saud_channel.o \
|
|
|
|
scumm/smush/scumm_renderer.o
|
|
|
|
|
2002-08-29 23:45:15 +00:00
|
|
|
SOUND_OBJS = sound/fmopl.o sound/mididrv.o sound/mixer.o
|
2002-08-21 16:07:07 +00:00
|
|
|
|
|
|
|
OBJS += $(COMMON_OBJS) $(GUI_OBJS) scumm/libscumm.a simon/libsimon.a $(SOUND_OBJS)
|
|
|
|
|
|
|
|
DISTFILES=$(OBJS:.o=.cpp) Makefile scumm.h scummsys.h stdafx.h stdafx.cpp \
|
|
|
|
debugrl.h whatsnew.txt readme.txt copying.txt \
|
|
|
|
scummvm.dsp scummvm.dsw sound/fmopl.h gui.h sound.h
|
2002-04-26 13:39:31 +00:00
|
|
|
|
2002-07-06 13:05:42 +00:00
|
|
|
all: scummvm$(EXEEXT)
|
|
|
|
|
|
|
|
scummvm$(EXEEXT): $(OBJS)
|
2002-08-21 16:07:07 +00:00
|
|
|
$(CXX) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS)
|
|
|
|
|
2002-08-24 16:26:09 +00:00
|
|
|
scumm/libscumm.a: $(SCUMM_OBJS) $(SMUSH_OBJS)
|
2002-08-21 20:47:12 +00:00
|
|
|
$(AR) $@ $+
|
|
|
|
$(RANLIB) $@
|
2002-08-21 16:07:07 +00:00
|
|
|
|
|
|
|
simon/libsimon.a: $(SIMON_OBJS)
|
2002-08-21 20:47:12 +00:00
|
|
|
$(AR) $@ $+
|
|
|
|
$(RANLIB) $@
|
2002-07-06 13:05:42 +00:00
|
|
|
|
|
|
|
clean:
|
2002-08-24 21:35:46 +00:00
|
|
|
$(RM) $(OBJS) $(SCUMM_OBJS) $(SIMON_OBJS) $(SMUSH_OBJS) scummvm$(EXEEXT)
|
2002-07-06 13:05:42 +00:00
|
|
|
|
2002-08-21 16:53:11 +00:00
|
|
|
.PHONY: all clean dist distclean
|
2002-07-06 13:05:42 +00:00
|
|
|
|
2002-07-06 13:02:57 +00:00
|
|
|
# Default (dumb) compile & dependcy rules
|
2002-08-21 16:28:19 +00:00
|
|
|
#.cpp.o:
|
|
|
|
# $(CXX) $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
|
|
|
|
#$(OBJS): $(INCS)
|
2002-07-06 13:02:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
# If you use GCC, disable the above and enable this for intelligent
|
|
|
|
# dependency tracking.
|
2002-08-21 16:28:19 +00:00
|
|
|
DEPDIR := .deps
|
|
|
|
DEPDIRS = $(patsubst %,%/$(DEPDIR),$(MODULES))
|
2002-08-21 16:40:33 +00:00
|
|
|
DEPFILES = $(wildcard $(patsubst %,%/$(DEPDIR)/*.d,$(MODULES)))
|
|
|
|
|
2002-08-21 16:28:19 +00:00
|
|
|
.cpp.o:
|
2002-08-21 20:47:12 +00:00
|
|
|
$(MKDIR) $(*D)/$(DEPDIR)
|
2002-08-21 16:28:19 +00:00
|
|
|
$(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d2" $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
|
2002-08-21 20:47:12 +00:00
|
|
|
$(ECHO) "$(*D)/" > $(*D)/$(DEPDIR)/$(*F).d
|
|
|
|
$(CAT) "$(*D)/$(DEPDIR)/$(*F).d2" >> "$(*D)/$(DEPDIR)/$(*F).d"
|
|
|
|
$(RM) "$(*D)/$(DEPDIR)/$(*F).d2"
|
2002-08-21 16:28:19 +00:00
|
|
|
|
2002-08-21 16:40:33 +00:00
|
|
|
-include $(DEPFILES) /dev/null
|
2002-08-21 16:53:11 +00:00
|
|
|
|
|
|
|
distclean: clean
|
2002-08-21 20:47:12 +00:00
|
|
|
$(RM_REC) $(DEPDIRS)
|