mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 07:53:12 +00:00
e55d303f22
svn-id: r3469
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# $Id$
|
|
#
|
|
# $Log$
|
|
# Revision 1.10 2001/11/07 10:28:33 cmatsuoka
|
|
# Using `sdl-config --libs` as LIBS, will override for cross-build.
|
|
#
|
|
# Revision 1.9 2001/11/06 22:59:59 cmatsuoka
|
|
# Re-added changes to allow cygwin and beos cross-compilation.
|
|
#
|
|
|
|
CC = gcc
|
|
CFLAGS = -g -Wno-multichar
|
|
DEFINES = -DUNIX
|
|
LDFLAGS :=
|
|
INCLUDES:= `sdl-config --cflags`
|
|
CPPFLAGS= $(DEFINES) $(INCLUDES)
|
|
LIBS = `sdl-config --libs`
|
|
ZIPFILE := scummvm-`date '+%Y-%m-%d'`.zip
|
|
|
|
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
|
|
|
|
DISTFILES=actor.cpp boxes.cpp costume.cpp gfx.cpp object.cpp resource.cpp \
|
|
saveload.cpp script.cpp scummvm.cpp sound.cpp string.cpp \
|
|
sys.cpp verbs.cpp sdl.cpp script_v1.cpp script_v2.cpp debug.cpp \
|
|
Makefile scumm.h scummsys.h stdafx.h stdafx.cpp windows.cpp \
|
|
whatsnew.txt readme.txt copying.txt scummvm.dsp scummvm.dsw
|
|
|
|
.cpp.o:
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(<)
|
|
|
|
all: scummvm
|
|
|
|
scummvm: $(OBJS)
|
|
$(CC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS)
|
|
|
|
clean:
|
|
rm -f $(OBJS) scummvm
|
|
|
|
dist:
|
|
rm -f $(ZIPFILE)
|
|
zip -q $(ZIPFILE) $(DISTFILES)
|
|
|
|
check:
|
|
$(OBJS): $(INCS)
|