mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 11:20:40 +00:00
Slightly revised Makefiles, now share common stuff in Makefile.common; added simple Makefile for MacOS X
svn-id: r4088
This commit is contained in:
parent
ca939b4884
commit
5fb37d8907
37
Makefile
37
Makefile
@ -8,39 +8,8 @@ INCLUDES:= `sdl-config --cflags` -I./ -I./sound
|
||||
CPPFLAGS= $(DEFINES) $(INCLUDES)
|
||||
|
||||
# Add -lmad for -DCOMPRESSED_SOUND_FILE
|
||||
LIBS = `sdl-config --libs` -lncurses -lm
|
||||
ZIPFILE := scummvm-`date '+%Y-%m-%d'`.zip
|
||||
LIBS = `sdl-config --libs` -lncurses
|
||||
|
||||
INCS = scumm.h scummsys.h stdafx.h
|
||||
OBJS = sdl.o
|
||||
|
||||
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/mixer.o debugrl.o \
|
||||
akos.o vars.o insane.o gameDetector.o init.o \
|
||||
v3/resource_v3.o v4/resource_v4.o 2xsai.o main.o \
|
||||
simon/midi.o simon/simon.o simon/simonsys.o sound/mididrv.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)
|
||||
include Makefile.common
|
||||
|
39
Makefile.common
Normal file
39
Makefile.common
Normal file
@ -0,0 +1,39 @@
|
||||
# $Header$
|
||||
# This file is used by Makefile, Makefile.irix, Makefile.macosx and declares
|
||||
# common rules, a list of common object files etc.
|
||||
|
||||
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 script_v1.o script_v2.o debug.o gui.o \
|
||||
sound/imuse.o sound/fmopl.o sound/mixer.o debugrl.o \
|
||||
akos.o vars.o insane.o gameDetector.o init.o \
|
||||
v3/resource_v3.o v4/resource_v4.o 2xsai.o main.o \
|
||||
simon/midi.o simon/simon.o simon/simonsys.o sound/mididrv.o
|
||||
|
||||
DISTFILES=$(OBJS:.o=.cpp) Makefile scumm.h scummsys.h stdafx.h stdafx.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)
|
@ -1,3 +1,5 @@
|
||||
# $Header$
|
||||
|
||||
CC = CC
|
||||
CFLAGS = -O2 -Olimit 9000 -mips2
|
||||
#CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar
|
||||
@ -9,38 +11,7 @@ CPPFLAGS= $(DEFINES) $(INCLUDES)
|
||||
|
||||
# Add -lmad for -DCOMPRESSED_SOUND_FILE
|
||||
LIBS = `sdl-config --libs` -lmad -lm
|
||||
ZIPFILE := scummvm-`date '+%Y-%m-%d'`.zip
|
||||
|
||||
INCS = scumm.h scummsys.h stdafx.h
|
||||
OBJS = sdl.o
|
||||
|
||||
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/mixer.o debugrl.o \
|
||||
akos.o vars.o insane.o gameDetector.o init.o \
|
||||
v3/resource_v3.o v4/resource_v4.o 2xsai.o main.o \
|
||||
simon/midi.o simon/simon.o simon/simonsys.o sound/mididrv.o
|
||||
|
||||
DISTFILES=$(OBJS:.o=.cpp) Makefile scumm.h scummsys.h stdafx.h stdafx.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)
|
||||
include Makefile.common
|
||||
|
15
Makefile.macosx
Normal file
15
Makefile.macosx
Normal file
@ -0,0 +1,15 @@
|
||||
# $Header$
|
||||
|
||||
CC = cc
|
||||
CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar
|
||||
DEFINES = -DUNIX -DMACOSX
|
||||
LDFLAGS :=
|
||||
INCLUDES:= `sdl-config --cflags` -I./ -I./sound
|
||||
CPPFLAGS= $(DEFINES) $(INCLUDES)
|
||||
|
||||
# Add -lmad for -DCOMPRESSED_SOUND_FILE
|
||||
LIBS = `sdl-config --libs` -lncurses -framework QuickTime -framework AudioUnit
|
||||
|
||||
OBJS = sdl.o
|
||||
|
||||
include Makefile.common
|
35
Makefile.x11
35
Makefile.x11
@ -9,38 +9,7 @@ CPPFLAGS= $(DEFINES) $(INCLUDES)
|
||||
|
||||
# Add -lmad for -DCOMPRESSED_SOUND_FILE
|
||||
LIBS = -lXext -lX11 -lncurses -lm -lmad -lpthread
|
||||
ZIPFILE := scummvm-`date '+%Y-%m-%d'`.zip
|
||||
|
||||
INCS = scumm.h scummsys.h stdafx.h
|
||||
OBJS = mp3_cd.o x11.o
|
||||
|
||||
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 script_v1.o script_v2.o debug.o gui.o \
|
||||
sound/imuse.o sound/fmopl.o sound/mixer.o debugrl.o \
|
||||
akos.o vars.o insane.o gameDetector.o init.o mp3_cd.o\
|
||||
v3/resource_v3.o v4/resource_v4.o 2xsai.o main.o \
|
||||
simon/midi.o simon/simon.o simon/simonsys.o sound/mididrv.o x11.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)
|
||||
include Makefile.common
|
||||
|
Loading…
Reference in New Issue
Block a user