mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
57cf1bfbee
svn-id: r3820
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# $Header$
|
|
|
|
CC = gcc
|
|
CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar
|
|
DEFINES = -DUNIX -DUSE_ADLIB
|
|
LDFLAGS :=
|
|
INCLUDES:= `sdl-config --cflags` -I./ -I./sound
|
|
CPPFLAGS= $(DEFINES) $(INCLUDES)
|
|
LIBS = `sdl-config --libs` -lncurses -lm
|
|
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 gui.o \
|
|
sound/imuse.o sound/fmopl.o sound/adlib.o sound/gmidi.o debugrl.o \
|
|
akos.o vars.o insane.o gameDetecter.o v3/resource.o v4/resource.o
|
|
|
|
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
|
|
|
|
.cpp.o:
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
|
|
|
|
all: scummvm
|
|
|
|
scummvm: $(OBJS)
|
|
$(CC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS)
|
|
|
|
$(OBJS): Makefile
|
|
|
|
clean:
|
|
rm -f $(OBJS) scummvm
|
|
|
|
dist:
|
|
rm -f $(ZIPFILE)
|
|
zip -q $(ZIPFILE) $(DISTFILES)
|
|
|
|
check:
|
|
$(OBJS): $(INCS)
|