scummvm/Makefile

40 lines
894 B
Makefile
Raw Normal View History

2001-11-09 18:57:46 +00:00
# $Header$
2001-10-09 14:30:12 +00:00
CC = gcc
2001-10-12 08:22:12 +00:00
CFLAGS = -g -Wno-multichar
DEFINES = -DUNIX -DHAVE_READLINE
LDFLAGS :=
INCLUDES:= `sdl-config --cflags`
2001-10-09 14:30:12 +00:00
CPPFLAGS= $(DEFINES) $(INCLUDES)
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 \
sys.o verbs.o sdl.o script_v1.o script_v2.o debug.o gui.o \
imuse.o debugrl.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
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)