diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000..933772a4bf --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +CC = gcc +CFLAGS = -g -O2 -Wno-multichar +DEFINES = -DUNIX -DSCUMM_BIG_ENDIAN -DSCUMM_NEED_ALIGNMENT +LDFLAGS = `sdl-config --libs` +INCLUDES= `sdl-config --cflags` +CPPFLAGS= $(DEFINES) $(INCLUDES) + +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 + +.cpp.o: + $(CC) $(CFLAGS) $(CPPFLAGS) -c $(<) + +all: scummvm + +scummvm: $(OBJS) + $(CC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) + +clean: + rm -f $(OBJS) scummvm + +check: +$(OBJS): $(INCS) |
