2007-11-26 15:59:22 +00:00
|
|
|
# This file contains port specific Makefile rules. It is automatically
|
|
|
|
# included by the default (main) Makefile.
|
2008-02-25 14:09:04 +00:00
|
|
|
#
|
2007-11-26 15:59:22 +00:00
|
|
|
|
|
|
|
#
|
2011-05-05 13:38:54 +00:00
|
|
|
# POSIX specific
|
2007-11-26 15:59:22 +00:00
|
|
|
#
|
2010-05-09 20:42:18 +00:00
|
|
|
install:
|
2012-11-13 19:52:52 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(bindir)"
|
|
|
|
$(INSTALL) -c -m 755 "./$(EXECUTABLE)" "$(DESTDIR)$(bindir)/$(EXECUTABLE)"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(mandir)/man6/"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/dists/scummvm.6" "$(DESTDIR)$(mandir)/man6/scummvm.6"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datarootdir)/pixmaps/"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/icons/scummvm.xpm" "$(DESTDIR)$(datarootdir)/pixmaps/scummvm.xpm"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(docdir)"
|
|
|
|
$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) "$(DESTDIR)$(docdir)"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datadir)"
|
|
|
|
$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) "$(DESTDIR)$(datadir)/"
|
|
|
|
ifdef DYNAMIC_MODULES
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(libdir)/scummvm/"
|
|
|
|
$(INSTALL) -c -m 644 $(PLUGINS) "$(DESTDIR)$(libdir)/scummvm/"
|
|
|
|
endif
|
|
|
|
|
|
|
|
install-strip:
|
2010-05-09 20:42:18 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(bindir)"
|
|
|
|
$(INSTALL) -c -s -m 755 "./$(EXECUTABLE)" "$(DESTDIR)$(bindir)/$(EXECUTABLE)"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(mandir)/man6/"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/dists/scummvm.6" "$(DESTDIR)$(mandir)/man6/scummvm.6"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datarootdir)/pixmaps/"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/icons/scummvm.xpm" "$(DESTDIR)$(datarootdir)/pixmaps/scummvm.xpm"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(docdir)"
|
|
|
|
$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) "$(DESTDIR)$(docdir)"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datadir)"
|
|
|
|
$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) "$(DESTDIR)$(datadir)/"
|
2008-05-06 03:11:01 +00:00
|
|
|
ifdef DYNAMIC_MODULES
|
2010-05-09 20:42:18 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(libdir)/scummvm/"
|
|
|
|
$(INSTALL) -c -s -m 644 $(PLUGINS) "$(DESTDIR)$(libdir)/scummvm/"
|
2008-05-02 14:30:06 +00:00
|
|
|
endif
|
2007-11-26 15:59:22 +00:00
|
|
|
|
|
|
|
uninstall:
|
2010-05-09 20:42:18 +00:00
|
|
|
rm -f "$(DESTDIR)$(bindir)/$(EXECUTABLE)"
|
|
|
|
rm -f "$(DESTDIR)$(mandir)/man6/scummvm.6"
|
|
|
|
rm -f "$(DESTDIR)$(datarootdir)/pixmaps/scummvm.xpm"
|
|
|
|
rm -rf "$(DESTDIR)$(docdir)"
|
|
|
|
rm -rf "$(DESTDIR)$(datadir)"
|
2008-05-06 03:11:01 +00:00
|
|
|
ifdef DYNAMIC_MODULES
|
2010-05-09 20:42:18 +00:00
|
|
|
rm -rf "$(DESTDIR)$(libdir)/scummvm/"
|
2008-05-02 14:30:06 +00:00
|
|
|
endif
|
2007-11-26 15:59:22 +00:00
|
|
|
|
|
|
|
# Special target to create a application wrapper for Mac OS X
|
|
|
|
bundle_name = ScummVM.app
|
2009-08-07 18:16:58 +00:00
|
|
|
bundle: scummvm-static
|
2007-11-26 15:59:22 +00:00
|
|
|
mkdir -p $(bundle_name)/Contents/MacOS
|
|
|
|
mkdir -p $(bundle_name)/Contents/Resources
|
|
|
|
echo "APPL????" > $(bundle_name)/Contents/PkgInfo
|
|
|
|
cp $(srcdir)/dists/macosx/Info.plist $(bundle_name)/Contents/
|
2011-07-03 21:01:17 +00:00
|
|
|
ifdef USE_SPARKLE
|
|
|
|
mkdir -p $(bundle_name)/Contents/Frameworks
|
|
|
|
cp $(srcdir)/dists/macosx/dsa_pub.pem $(bundle_name)/Contents/Resources/
|
|
|
|
cp -R $(STATICLIBPATH)/Sparkle.framework $(bundle_name)/Contents/Frameworks/
|
|
|
|
endif
|
2007-11-26 15:59:22 +00:00
|
|
|
cp $(srcdir)/icons/scummvm.icns $(bundle_name)/Contents/Resources/
|
2009-06-18 18:40:38 +00:00
|
|
|
cp $(DIST_FILES_DOCS) $(bundle_name)/
|
2008-01-06 14:08:53 +00:00
|
|
|
cp $(DIST_FILES_THEMES) $(bundle_name)/Contents/Resources/
|
2010-05-26 13:27:11 +00:00
|
|
|
ifdef DIST_FILES_ENGINEDATA
|
2008-01-06 14:08:53 +00:00
|
|
|
cp $(DIST_FILES_ENGINEDATA) $(bundle_name)/Contents/Resources/
|
2010-05-26 13:27:11 +00:00
|
|
|
endif
|
2011-04-09 21:47:35 +00:00
|
|
|
$(srcdir)/devtools/credits.pl --rtf > $(bundle_name)/Contents/Resources/Credits.rtf
|
2007-12-27 23:41:15 +00:00
|
|
|
chmod 644 $(bundle_name)/Contents/Resources/*
|
|
|
|
cp scummvm-static $(bundle_name)/Contents/MacOS/scummvm
|
|
|
|
chmod 755 $(bundle_name)/Contents/MacOS/scummvm
|
2009-03-19 20:49:22 +00:00
|
|
|
$(STRIP) $(bundle_name)/Contents/MacOS/scummvm
|
2007-11-26 15:59:22 +00:00
|
|
|
|
2009-08-07 18:16:58 +00:00
|
|
|
iphonebundle: iphone
|
2007-11-26 15:59:22 +00:00
|
|
|
mkdir -p $(bundle_name)
|
|
|
|
cp $(srcdir)/dists/iphone/Info.plist $(bundle_name)/
|
2009-06-18 18:40:38 +00:00
|
|
|
cp $(DIST_FILES_DOCS) $(bundle_name)/
|
2008-01-06 14:08:53 +00:00
|
|
|
cp $(DIST_FILES_THEMES) $(bundle_name)/
|
2010-05-26 13:27:11 +00:00
|
|
|
ifdef DIST_FILES_ENGINEDATA
|
2008-01-06 14:08:53 +00:00
|
|
|
cp $(DIST_FILES_ENGINEDATA) $(bundle_name)/
|
2010-05-26 13:27:11 +00:00
|
|
|
endif
|
2010-05-11 01:17:17 +00:00
|
|
|
$(STRIP) scummvm
|
2009-11-22 15:58:34 +00:00
|
|
|
ldid -S scummvm
|
2010-05-11 01:17:17 +00:00
|
|
|
chmod 755 scummvm
|
2007-11-26 15:59:22 +00:00
|
|
|
cp scummvm $(bundle_name)/ScummVM
|
2010-07-09 01:08:15 +00:00
|
|
|
cp $(srcdir)/dists/iphone/icon.png $(bundle_name)/
|
2010-10-12 02:18:11 +00:00
|
|
|
cp $(srcdir)/dists/iphone/icon-72.png $(bundle_name)/
|
2010-07-09 01:08:15 +00:00
|
|
|
cp $(srcdir)/dists/iphone/Default.png $(bundle_name)/
|
2013-03-10 21:32:42 +00:00
|
|
|
# Binary patch workaround for Iphone 5/IPad 4 "Illegal instruction: 4" toolchain issue (http://code.google.com/p/iphone-gcc-full/issues/detail?id=6)
|
|
|
|
cp scummvm scummvm-iph5
|
|
|
|
sed -i'' 's/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' scummvm-iph5
|
|
|
|
ldid -S scummvm-iph5
|
|
|
|
chmod 755 scummvm-iph5
|
|
|
|
cp scummvm-iph5 $(bundle_name)/ScummVM-iph5
|
2007-11-26 15:59:22 +00:00
|
|
|
|
2007-12-02 11:05:29 +00:00
|
|
|
# Location of static libs for the iPhone
|
2009-03-19 20:49:22 +00:00
|
|
|
ifneq ($(BACKEND), iphone)
|
2007-12-02 11:11:28 +00:00
|
|
|
# Static libaries, used for the scummvm-static and iphone targets
|
2009-03-19 20:49:22 +00:00
|
|
|
OSX_STATIC_LIBS := `$(STATICLIBPATH)/bin/sdl-config --static-libs`
|
2014-02-16 03:18:07 +00:00
|
|
|
endif
|
|
|
|
|
2012-03-21 05:36:40 +00:00
|
|
|
ifdef USE_FREETYPE2
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libfreetype.a $(STATICLIBPATH)/lib/libbz2.a
|
|
|
|
endif
|
2007-11-26 15:59:22 +00:00
|
|
|
|
|
|
|
ifdef USE_VORBIS
|
|
|
|
OSX_STATIC_LIBS += \
|
2009-03-19 20:49:22 +00:00
|
|
|
$(STATICLIBPATH)/lib/libvorbisfile.a \
|
|
|
|
$(STATICLIBPATH)/lib/libvorbis.a \
|
|
|
|
$(STATICLIBPATH)/lib/libogg.a
|
2007-11-26 15:59:22 +00:00
|
|
|
endif
|
|
|
|
|
2007-12-02 11:05:29 +00:00
|
|
|
ifdef USE_TREMOR
|
2009-03-19 20:49:22 +00:00
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libvorbisidec.a
|
2007-12-02 11:05:29 +00:00
|
|
|
endif
|
|
|
|
|
2007-11-26 15:59:22 +00:00
|
|
|
ifdef USE_FLAC
|
2009-03-19 20:49:22 +00:00
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libFLAC.a
|
2007-11-26 15:59:22 +00:00
|
|
|
endif
|
|
|
|
|
2012-08-20 00:40:03 +00:00
|
|
|
ifdef USE_FLUIDSYNTH
|
|
|
|
OSX_STATIC_LIBS += \
|
|
|
|
-framework CoreAudio \
|
|
|
|
$(STATICLIBPATH)/lib/libfluidsynth.a
|
|
|
|
endif
|
|
|
|
|
2007-11-26 15:59:22 +00:00
|
|
|
ifdef USE_MAD
|
2009-03-19 20:49:22 +00:00
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libmad.a
|
2007-11-26 15:59:22 +00:00
|
|
|
endif
|
|
|
|
|
2010-10-15 03:33:54 +00:00
|
|
|
ifdef USE_PNG
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libpng.a
|
|
|
|
endif
|
|
|
|
|
2011-01-19 15:00:53 +00:00
|
|
|
ifdef USE_THEORADEC
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libtheoradec.a
|
|
|
|
endif
|
|
|
|
|
2011-04-09 19:27:23 +00:00
|
|
|
ifdef USE_FAAD
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libfaad.a
|
|
|
|
endif
|
|
|
|
|
2013-07-06 03:08:47 +00:00
|
|
|
ifdef USE_MPEG2
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libmpeg2.a
|
|
|
|
endif
|
|
|
|
|
2013-09-17 00:41:12 +00:00
|
|
|
ifdef USE_JPEG
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libjpeg.a
|
|
|
|
endif
|
|
|
|
|
2009-03-19 20:49:22 +00:00
|
|
|
ifdef USE_ZLIB
|
2012-01-14 09:39:49 +00:00
|
|
|
OSX_ZLIB ?= $(STATICLIBPATH)/lib/libz.a
|
2007-11-26 15:59:22 +00:00
|
|
|
endif
|
|
|
|
|
2011-07-03 21:01:17 +00:00
|
|
|
ifdef USE_SPARKLE
|
|
|
|
OSX_STATIC_LIBS += -framework Sparkle -F$(STATICLIBPATH)
|
|
|
|
endif
|
|
|
|
|
2007-11-26 15:59:22 +00:00
|
|
|
# Special target to create a static linked binary for Mac OS X.
|
|
|
|
# We use -force_cpusubtype_ALL to ensure the binary runs on every
|
|
|
|
# PowerPC machine.
|
|
|
|
scummvm-static: $(OBJS)
|
|
|
|
$(CXX) $(LDFLAGS) -force_cpusubtype_ALL -o scummvm-static $(OBJS) \
|
|
|
|
-framework CoreMIDI \
|
|
|
|
$(OSX_STATIC_LIBS) \
|
2014-06-09 21:37:53 +00:00
|
|
|
$(OSX_ZLIB)
|
2007-11-26 15:59:22 +00:00
|
|
|
|
2007-12-02 11:05:29 +00:00
|
|
|
# Special target to create a static linked binary for the iPhone
|
|
|
|
iphone: $(OBJS)
|
|
|
|
$(CXX) $(LDFLAGS) -o scummvm $(OBJS) \
|
|
|
|
$(OSX_STATIC_LIBS) \
|
2009-05-10 22:15:33 +00:00
|
|
|
-framework UIKit -framework CoreGraphics -framework OpenGLES \
|
2014-02-14 01:20:59 +00:00
|
|
|
-framework CoreFoundation -framework QuartzCore -framework Foundation \
|
|
|
|
-framework AudioToolbox -framework CoreAudio -lobjc -lz
|
2007-12-02 11:05:29 +00:00
|
|
|
|
2007-11-26 15:59:22 +00:00
|
|
|
# Special target to create a snapshot disk image for Mac OS X
|
|
|
|
# TODO: Replace AUTHORS by Credits.rtf
|
2009-03-19 20:49:22 +00:00
|
|
|
osxsnap: bundle
|
2007-11-26 15:59:22 +00:00
|
|
|
mkdir ScummVM-snapshot
|
2011-04-09 21:47:35 +00:00
|
|
|
$(srcdir)/devtools/credits.pl --text > $(srcdir)/AUTHORS
|
2008-01-06 14:12:55 +00:00
|
|
|
cp $(srcdir)/AUTHORS ./ScummVM-snapshot/Authors
|
2009-04-19 10:28:00 +00:00
|
|
|
cp $(srcdir)/COPYING ./ScummVM-snapshot/License\ \(GPL\)
|
2012-03-25 08:22:57 +00:00
|
|
|
cp $(srcdir)/COPYING.BSD ./ScummVM-snapshot/License\ \(BSD\)
|
2009-04-19 10:28:00 +00:00
|
|
|
cp $(srcdir)/COPYING.LGPL ./ScummVM-snapshot/License\ \(LGPL\)
|
2012-03-25 08:22:57 +00:00
|
|
|
cp $(srcdir)/COPYING.FREEFONT ./ScummVM-snapshot/License\ \(FREEFONT\)
|
2008-01-06 14:12:55 +00:00
|
|
|
cp $(srcdir)/COPYRIGHT ./ScummVM-snapshot/Copyright\ Holders
|
|
|
|
cp $(srcdir)/NEWS ./ScummVM-snapshot/News
|
|
|
|
cp $(srcdir)/README ./ScummVM-snapshot/ScummVM\ ReadMe
|
2011-07-18 07:32:19 +00:00
|
|
|
mkdir ScummVM-snapshot/doc
|
2011-07-18 07:36:27 +00:00
|
|
|
cp $(srcdir)/doc/QuickStart ./ScummVM-snapshot/doc/QuickStart
|
2011-10-19 21:02:52 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/cz
|
|
|
|
cp $(srcdir)/doc/cz/PrectiMe ./ScummVM-snapshot/doc/cz/PrectiMe
|
2012-07-07 00:15:59 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/da
|
|
|
|
cp $(srcdir)/doc/da/HurtigStart ./ScummVM-snapshot/doc/da/HurtigStart
|
2011-07-18 07:32:19 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/de
|
2011-07-18 07:36:27 +00:00
|
|
|
cp $(srcdir)/doc/de/Liesmich ./ScummVM-snapshot/doc/de/Liesmich
|
2011-07-18 07:32:19 +00:00
|
|
|
cp $(srcdir)/doc/de/Schnellstart ./ScummVM-snapshot/doc/de/Schnellstart
|
2011-10-15 23:36:19 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/es
|
2011-10-25 08:52:22 +00:00
|
|
|
cp $(srcdir)/doc/es/InicioRapido ./ScummVM-snapshot/doc/es
|
2011-07-18 07:32:19 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/fr
|
2011-10-05 18:48:46 +00:00
|
|
|
cp $(srcdir)/doc/fr/DemarrageRapide ./ScummVM-snapshot/doc/fr/DemarrageRapide
|
2011-10-16 23:05:55 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/it
|
|
|
|
cp $(srcdir)/doc/it/GuidaRapida ./ScummVM-snapshot/doc/it/GuidaRapida
|
2011-10-05 18:55:13 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/no-nb
|
2012-01-14 15:47:27 +00:00
|
|
|
cp $(srcdir)/doc/no-nb/HurtigStart ./ScummVM-snapshot/doc/no-nb/HurtigStart
|
2011-11-27 21:47:25 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/se
|
2012-01-14 15:47:27 +00:00
|
|
|
cp $(srcdir)/doc/se/LasMig ./ScummVM-snapshot/doc/se/LasMig
|
|
|
|
cp $(srcdir)/doc/se/Snabbstart ./ScummVM-snapshot/doc/se/Snabbstart
|
2007-11-26 15:59:22 +00:00
|
|
|
/Developer/Tools/SetFile -t ttro -c ttxt ./ScummVM-snapshot/*
|
2011-10-19 21:02:52 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/cz/*
|
2012-07-07 00:15:59 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/da/*
|
2011-08-22 18:21:56 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/de/*
|
2011-10-15 23:36:19 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/es/*
|
2011-08-22 18:21:56 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/fr/*
|
2011-10-16 23:05:55 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/it/*
|
2011-10-05 18:55:13 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/no-nb/*
|
2011-11-27 21:47:25 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/se/*
|
2007-11-26 15:59:22 +00:00
|
|
|
/Developer/Tools/CpMac -r $(bundle_name) ./ScummVM-snapshot/
|
2008-01-06 14:12:55 +00:00
|
|
|
cp $(srcdir)/dists/macosx/DS_Store ./ScummVM-snapshot/.DS_Store
|
|
|
|
cp $(srcdir)/dists/macosx/background.jpg ./ScummVM-snapshot/background.jpg
|
2007-11-26 15:59:22 +00:00
|
|
|
/Developer/Tools/SetFile -a V ./ScummVM-snapshot/.DS_Store
|
|
|
|
/Developer/Tools/SetFile -a V ./ScummVM-snapshot/background.jpg
|
|
|
|
hdiutil create -ov -format UDZO -imagekey zlib-level=9 -fs HFS+ \
|
|
|
|
-srcfolder ScummVM-snapshot \
|
2009-04-19 10:28:00 +00:00
|
|
|
-volname "ScummVM" \
|
2007-11-26 15:59:22 +00:00
|
|
|
ScummVM-snapshot.dmg
|
|
|
|
rm -rf ScummVM-snapshot
|
|
|
|
|
|
|
|
#
|
|
|
|
# Windows specific
|
|
|
|
#
|
|
|
|
|
2011-04-21 22:29:18 +00:00
|
|
|
scummvmwinres.o: $(srcdir)/icons/scummvm.ico $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) $(srcdir)/dists/scummvm.rc
|
2011-05-05 18:24:57 +00:00
|
|
|
$(QUIET_WINDRES)$(WINDRES) -DHAVE_CONFIG_H $(WINDRESFLAGS) $(DEFINES) -I. -I$(srcdir) $(srcdir)/dists/scummvm.rc scummvmwinres.o
|
2007-11-26 15:59:22 +00:00
|
|
|
|
2011-06-29 16:14:36 +00:00
|
|
|
# Special target to create a win32 snapshot binary (for Inno Setup)
|
|
|
|
win32dist: $(EXECUTABLE)
|
|
|
|
mkdir -p $(WIN32PATH)
|
2011-06-30 01:45:57 +00:00
|
|
|
mkdir -p $(WIN32PATH)/graphics
|
2011-07-18 07:32:19 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc
|
2011-10-19 21:02:52 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/cz
|
2012-07-07 00:15:59 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/da
|
2011-07-15 18:36:06 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/de
|
2011-10-15 23:36:19 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/es
|
2011-07-15 18:36:06 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/fr
|
2011-10-16 23:24:11 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/it
|
2011-10-05 11:43:58 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/no-nb
|
2011-11-27 21:47:25 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/se
|
2011-06-29 16:14:36 +00:00
|
|
|
$(STRIP) $(EXECUTABLE) -o $(WIN32PATH)/$(EXECUTABLE)
|
|
|
|
cp $(srcdir)/AUTHORS $(WIN32PATH)/AUTHORS.txt
|
|
|
|
cp $(srcdir)/COPYING $(WIN32PATH)/COPYING.txt
|
2012-03-25 08:22:57 +00:00
|
|
|
cp $(srcdir)/COPYING.BSD $(WIN32PATH)/COPYING.BSD.txt
|
2011-06-29 16:14:36 +00:00
|
|
|
cp $(srcdir)/COPYING.LGPL $(WIN32PATH)/COPYING.LGPL.txt
|
2012-01-28 20:45:11 +00:00
|
|
|
cp $(srcdir)/COPYING.FREEFONT $(WIN32PATH)/COPYING.FREEFONT.txt
|
2011-06-29 16:14:36 +00:00
|
|
|
cp $(srcdir)/COPYRIGHT $(WIN32PATH)/COPYRIGHT.txt
|
|
|
|
cp $(srcdir)/NEWS $(WIN32PATH)/NEWS.txt
|
2011-10-19 21:02:52 +00:00
|
|
|
cp $(srcdir)/doc/cz/PrectiMe $(WIN32PATH)/doc/cz/PrectiMe.txt
|
2011-10-05 11:43:58 +00:00
|
|
|
cp $(srcdir)/doc/de/Neues $(WIN32PATH)/doc/de/Neues.txt
|
2011-07-18 07:32:19 +00:00
|
|
|
cp $(srcdir)/doc/QuickStart $(WIN32PATH)/doc/QuickStart.txt
|
2011-10-25 08:52:22 +00:00
|
|
|
cp $(srcdir)/doc/es/InicioRapido $(WIN32PATH)/doc/es/InicioRapido.txt
|
2011-10-05 18:48:46 +00:00
|
|
|
cp $(srcdir)/doc/fr/DemarrageRapide $(WIN32PATH)/doc/fr/DemarrageRapide.txt
|
2011-10-16 23:05:55 +00:00
|
|
|
cp $(srcdir)/doc/it/GuidaRapida $(WIN32PATH)/doc/it/GuidaRapida.txt
|
2011-10-05 11:43:58 +00:00
|
|
|
cp $(srcdir)/doc/no-nb/HurtigStart $(WIN32PATH)/doc/no-nb/HurtigStart.txt
|
2012-07-07 00:15:59 +00:00
|
|
|
cp $(srcdir)/doc/da/HurtigStart $(WIN32PATH)/doc/da/HurtigStart.txt
|
2011-07-18 07:32:19 +00:00
|
|
|
cp $(srcdir)/doc/de/Schnellstart $(WIN32PATH)/doc/de/Schnellstart.txt
|
2011-11-27 21:47:25 +00:00
|
|
|
cp $(srcdir)/doc/se/Snabbstart $(WIN32PATH)/doc/se/Snabbstart.txt
|
2011-10-05 11:43:58 +00:00
|
|
|
cp $(srcdir)/README $(WIN32PATH)/README.txt
|
2011-07-18 07:36:27 +00:00
|
|
|
cp $(srcdir)/doc/de/Liesmich $(WIN32PATH)/doc/de/Liesmich.txt
|
2011-12-06 19:23:36 +00:00
|
|
|
cp $(srcdir)/doc/se/LasMig $(WIN32PATH)/doc/se/LasMig.txt
|
2011-06-29 16:14:36 +00:00
|
|
|
cp /usr/local/README-SDL.txt $(WIN32PATH)
|
|
|
|
cp /usr/local/bin/SDL.dll $(WIN32PATH)
|
2011-06-30 01:45:57 +00:00
|
|
|
cp $(srcdir)/dists/win32/graphics/left.bmp $(WIN32PATH)/graphics
|
|
|
|
cp $(srcdir)/dists/win32/graphics/scummvm-install.ico $(WIN32PATH)/graphics
|
2012-01-24 00:40:24 +00:00
|
|
|
cp $(srcdir)/dists/win32/migration.bat $(WIN32PATH)
|
|
|
|
cp $(srcdir)/dists/win32/migration.txt $(WIN32PATH)
|
2011-06-29 16:14:36 +00:00
|
|
|
cp $(srcdir)/dists/win32/ScummVM.iss $(WIN32PATH)
|
|
|
|
unix2dos $(WIN32PATH)/*.txt
|
2011-11-17 11:46:02 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/*.txt
|
2011-10-19 21:02:52 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/cz/*.txt
|
2012-07-07 00:15:59 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/da/*.txt
|
2011-07-15 18:36:06 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/de/*.txt
|
2011-10-15 23:36:19 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/es/*.txt
|
2011-07-15 18:36:06 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/fr/*.txt
|
2011-10-16 23:24:11 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/it/*.txt
|
2011-10-15 23:36:19 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/no-nb/*.txt
|
2011-11-27 23:26:10 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/se/*.txt
|
2011-05-11 21:54:34 +00:00
|
|
|
|
|
|
|
# Special target to create a win32 NSIS installer
|
2011-06-29 16:14:36 +00:00
|
|
|
win32setup: $(EXECUTABLE)
|
2011-07-01 02:41:52 +00:00
|
|
|
mkdir -p $(srcdir)/$(STAGINGPATH)
|
|
|
|
$(STRIP) $(EXECUTABLE) -o $(srcdir)/$(STAGINGPATH)/$(EXECUTABLE)
|
|
|
|
cp /usr/local/bin/SDL.dll $(srcdir)/$(STAGINGPATH)
|
2011-07-01 04:24:31 +00:00
|
|
|
makensis -V2 -Dtop_srcdir="../.." -Dstaging_dir="../../$(STAGINGPATH)" -Darch=$(ARCH) $(srcdir)/dists/win32/scummvm.nsi
|
2007-11-26 15:59:22 +00:00
|
|
|
|
2011-11-23 12:48:24 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Special target to generate project files for various IDEs
|
|
|
|
# Mainly Win32-specific
|
|
|
|
#
|
2011-11-23 12:55:54 +00:00
|
|
|
|
|
|
|
# The release branch is in form 'heads/branch-1-4-1', for this case
|
|
|
|
# $CUR_BRANCH will be equal to '1', for the rest cases it will be empty
|
2011-11-23 12:48:24 +00:00
|
|
|
CUR_BRANCH := $(shell cd $(srcdir); git describe --all |cut -d '-' -f 4-)
|
|
|
|
|
|
|
|
ideprojects: devtools/create_project
|
2011-11-23 12:55:54 +00:00
|
|
|
ifeq ($(VER_DIRTY), -dirty)
|
2011-11-23 12:48:24 +00:00
|
|
|
$(error You have uncommitted changes)
|
|
|
|
endif
|
|
|
|
ifeq "$(CUR_BRANCH)" "heads/master"
|
|
|
|
$(error You cannot do it on master)
|
|
|
|
else ifeq "$(CUR_BRANCH)" ""
|
|
|
|
$(error You must be on a release branch)
|
|
|
|
endif
|
|
|
|
@echo Creating Code::Blocks project files...
|
2013-11-07 11:58:34 +00:00
|
|
|
@cd $(srcdir)/dists/codeblocks && ../../devtools/create_project/create_project ../.. --codeblocks >/dev/null && git add -f engines/plugins_table.h *.workspace *.cbp
|
2011-11-23 12:48:24 +00:00
|
|
|
@echo Creating MSVC9 project files...
|
2013-11-07 11:58:34 +00:00
|
|
|
@cd $(srcdir)/dists/msvc9 && ../../devtools/create_project/create_project ../.. --msvc --msvc-version 9 >/dev/null && git add -f engines/plugins_table.h *.sln *.vcproj *.vsprops
|
2011-11-23 12:48:24 +00:00
|
|
|
@echo Creating MSVC10 project files...
|
2013-11-07 11:58:34 +00:00
|
|
|
@cd $(srcdir)/dists/msvc10 && ../../devtools/create_project/create_project ../.. --msvc --msvc-version 10 >/dev/null && git add -f engines/plugins_table.h *.sln *.vcxproj *.vcxproj.filters *.props
|
2012-07-28 00:05:00 +00:00
|
|
|
@echo Creating MSVC11 project files...
|
2013-11-07 11:58:34 +00:00
|
|
|
@cd $(srcdir)/dists/msvc11 && ../../devtools/create_project/create_project ../.. --msvc --msvc-version 11 >/dev/null && git add -f engines/plugins_table.h *.sln *.vcxproj *.vcxproj.filters *.props
|
2011-11-23 12:48:24 +00:00
|
|
|
@echo
|
|
|
|
@echo All is done.
|
|
|
|
@echo Now run
|
|
|
|
@echo "\tgit commit 'DISTS: Generated Code::Blocks and MSVC project files'"
|
|
|
|
|
2009-09-25 11:22:14 +00:00
|
|
|
# Mark special targets as phony
|
2014-06-28 15:12:43 +00:00
|
|
|
.PHONY: deb bundle osxsnap win32dist install uninstall
|