scummvm/Makefile

47 lines
1.2 KiB
Makefile
Raw Normal View History

2001-11-09 18:57:46 +00:00
# $Header$
2001-12-01 17:44:59 +00:00
CC = gcc
2002-03-24 17:49:47 +00:00
CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar
DEFINES = -DUNIX
2001-12-01 17:44:59 +00:00
LDFLAGS :=
INCLUDES:= `sdl-config --cflags` -I./ -I./sound
2001-10-09 14:30:12 +00:00
CPPFLAGS= $(DEFINES) $(INCLUDES)
2002-04-05 04:35:41 +00:00
2002-04-05 04:38:59 +00:00
# Add -lmad for -DCOMPRESSED_SOUND_FILE
LIBS = `sdl-config --libs` -lncurses -lm
2001-10-12 08:22:12 +00:00
ZIPFILE := scummvm-`date '+%Y-%m-%d'`.zip
2001-10-09 14:30:12 +00:00
INCS = scumm.h scummsys.h stdafx.h
2001-10-09 14:30:12 +00:00
OBJS = 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 sdl.o script_v1.o script_v2.o debug.o gui.o \
2001-12-28 12:14:53 +00:00
sound/imuse.o sound/fmopl.o sound/adlib.o sound/gmidi.o debugrl.o \
2002-04-05 04:35:41 +00:00
akos.o vars.o insane.o gameDetector.o init.o mp3_cd.o\
v3/resource_v3.o v4/resource_v4.o 2xsai.o main.o \
simon/midi.o simon/simon.o simon/simonsys.o sound/mididrv.o
2001-10-12 08:22:12 +00:00
DISTFILES=$(OBJS:.o=.cpp) Makefile scumm.h scummsys.h stdafx.h stdafx.cpp \
windows.cpp debugrl.h whatsnew.txt readme.txt copying.txt \
scummvm.dsp scummvm.dsw sound/fmopl.h gui.h sound.h
2001-10-12 08:22:12 +00:00
2001-10-09 14:30:12 +00:00
.cpp.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
2001-10-09 14:30:12 +00:00
all: scummvm
scummvm: $(OBJS)
$(CC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS)
$(OBJS): Makefile
2001-10-09 14:30:12 +00:00
clean:
rm -f $(OBJS) scummvm
2001-10-12 08:22:12 +00:00
dist:
rm -f $(ZIPFILE)
zip -q $(ZIPFILE) $(DISTFILES)
2001-10-09 14:30:12 +00:00
check:
$(OBJS): $(INCS)