aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 767bbaa308f38ab1abd06a20dcb46a10257f08c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CC	= gcc
CFLAGS	= -g -Wno-multichar
DEFINES	= -DUNIX
LDFLAGS := `sdl-config --libs`
INCLUDES:= `sdl-config --cflags`
CPPFLAGS= $(DEFINES) $(INCLUDES)
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)