2001-11-09 18:57:46 +00:00
|
|
|
# $Header$
|
2001-11-06 22:59:59 +00:00
|
|
|
|
2001-10-09 14:30:12 +00:00
|
|
|
CC = gcc
|
2001-10-12 08:22:12 +00:00
|
|
|
CFLAGS = -g -Wno-multichar
|
2001-11-19 00:04:34 +00:00
|
|
|
DEFINES = -DUNIX -DHAVE_READLINE
|
2001-11-06 22:59:59 +00:00
|
|
|
LDFLAGS :=
|
2001-11-05 19:21:49 +00:00
|
|
|
INCLUDES:= `sdl-config --cflags`
|
2001-10-09 14:30:12 +00:00
|
|
|
CPPFLAGS= $(DEFINES) $(INCLUDES)
|
2001-11-19 00:04:34 +00:00
|
|
|
LIBS = `sdl-config --libs` -lreadline -lncurses -lhistory
|
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
|
|
|
|
|
|
|
|
OBJS = actor.o boxes.o costume.o gfx.o object.o resource.o \
|
|
|
|
saveload.o script.o scummvm.o sound.o string.o \
|
2001-11-14 18:40:39 +00:00
|
|
|
sys.o verbs.o sdl.o script_v1.o script_v2.o debug.o gui.o \
|
2001-11-19 00:04:34 +00:00
|
|
|
imuse.o debugrl.o
|
2001-10-12 08:22:12 +00:00
|
|
|
|
2001-11-19 00:04:34 +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
|
2001-10-12 08:22:12 +00:00
|
|
|
|
2001-10-09 14:30:12 +00:00
|
|
|
.cpp.o:
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(<)
|
|
|
|
|
|
|
|
all: scummvm
|
|
|
|
|
|
|
|
scummvm: $(OBJS)
|
|
|
|
$(CC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS)
|
|
|
|
|
|
|
|
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)
|