mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 15:09:47 +00:00
862e0b26bc
svn-id: r4583
52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
# $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 boxes.o costume.o gfx.o object.o resource.o \
|
|
saveload.o script.o scummvm.o sound.o string.o \
|
|
sys.o verbs.o script_v1.o script_v2.o debug.o gui.o \
|
|
sound/imuse.o sound/fmopl.o sound/mixer.o debugrl.o \
|
|
akos.o vars.o insane.o gameDetector.o init.o \
|
|
v3/resource_v3.o v4/resource_v4.o scaler.o main.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 config-file.o
|
|
|
|
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
|
|
|
|
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
|