Ticket #8755: makefiles.patch
File makefiles.patch, 7.1 KB (added by , 16 years ago) |
---|
-
tools/update-version.pl
31 31 32 32 # List of the files in which we need to perform substitution. 33 33 my @subs_files = qw( 34 backends/platform/ds/arm9/makefile35 34 base/internal_version.h 36 dists/iphone/Info.plist37 dists/macosx/Info.plist38 35 dists/redhat/scummvm.spec 39 36 dists/scummvm.rc 40 37 dists/slackware/scummvm.SlackBuild -
Makefile.common
5 5 ###################################################################### 6 6 # The default build target: just build the scummvm executable 7 7 ###################################################################### 8 8 9 all: $(EXECUTABLE) plugins 9 10 10 11 11 12 ###################################################################### 12 # Various minor settings13 ######################################################################14 15 # Files that are to be included in the archive built by "make dist"16 DISTFILES := \17 Makefile Makefile.common \18 AUTHORS NEWS README COPYING COPYRIGHT19 20 # The dist file name21 ZIPFILE := scummvm-`date '+%Y-%m-%d'`.zip22 23 # The name for the directory used for depenency tracking24 DEPDIR := .deps25 26 27 ######################################################################28 13 # Module settings 29 14 ###################################################################### 30 15 … … 53 38 DEFINES += -DDISABLE_HQ_SCALERS 54 39 endif 55 40 41 56 42 ###################################################################### 57 43 # The build rules follow - normally you should have no need to 58 44 # touch whatever comes after here. 59 45 ###################################################################### 60 46 61 47 # Concat DEFINES and INCLUDES to form the CPPFLAGS 62 CPPFLAGS := $(DEFINES) $(INCLUDES)48 CPPFLAGS := $(DEFINES) $(INCLUDES) 63 49 64 50 # Include the build instructions for all modules 65 51 -include $(addprefix $(srcdir)/, $(addsuffix /module.mk,$(MODULES))) … … 74 60 base/version.o: $(filter-out base/libbase.a,$(OBJS)) 75 61 76 62 # The build rule for the ScummVM executable 77 $(EXECUTABLE): 63 $(EXECUTABLE): $(OBJS) 78 64 $(CXX) $(LDFLAGS) $(PRE_OBJS_FLAGS) $+ $(POST_OBJS_FLAGS) $(LIBS) -o $@ 79 65 80 66 distclean: clean … … 84 70 clean: 85 71 $(RM) $(OBJS) $(EXECUTABLE) 86 72 87 .PHONY: all clean dist distclean plugins88 89 73 # Old (dumb) compile & dependcy rules 90 74 #INCS = scumm/scumm.h common/scummsys.h 91 75 #.cpp.o: … … 123 107 124 108 # Include the dependency tracking files. 125 109 -include $(wildcard $(addsuffix /*.d,$(DEPDIRS))) 110 111 112 ###################################################################### 113 # Create the files that depend on the version 114 ###################################################################### 115 116 VERSION_FILES = \ 117 $(srcdir)/dists/iphone/Info.plist \ 118 $(srcdir)/dists/macosx/Info.plist 119 120 VERSION = $(shell cat "${srcdir}/base/internal_version.h" | cut -d\" -f2) 121 VER_MAJOR = $(shell echo $(VERSION) | cut -d. -f 1) 122 VER_MINOR = $(shell echo $(VERSION) | cut -d. -f 2) 123 VER_PATCH = $(shell echo $(VERSION) | cut -d. -f 3 | cut -c1) 124 VER_EXTRA = $(shell echo $(VERSION) | cut -d. -f 3 | cut -c2-) 125 126 $(VERSION_FILES): %: %.in 127 @echo "Creating $@" 128 @cat $< | sed \ 129 -e "s/@VER_MAJOR@/$(VER_MAJOR)/g" \ 130 -e "s/@VER_MINOR@/$(VER_MINOR)/g" \ 131 -e "s/@VER_PATCH@/$(VER_PATCH)/g" \ 132 -e "s/@VER_EXTRA@/$(VER_EXTRA)/g" \ 133 -e "s/@VERSION@/$(VERSION)/g" \ 134 > $@ 135 136 137 ###################################################################### 138 # Distribution settings 139 ###################################################################### 140 141 ifeq ($(VER_EXTRA),svn) 142 DISTVERSION = $(shell date '+%Y-%m-%d') 143 else 144 DISTVERSION = $(VERSION) 145 endif 146 147 DISTNAME := scummvm-$(DISTVERSION) 148 DISTDIR := dist 149 VERFILE := $(DISTDIR)/$(DISTNAME)/base/internal_version.h 150 151 ifeq ($(shell svn stat $(srcdir) 2>&1 | grep "is not a working copy"),) 152 SVNROOT := $(srcdir) 153 else 154 SVNROOT := https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk/ 155 endif 156 157 $(VERFILE): $(srcdir)/base/internal_version.h 158 @$(RM_REC) $(DISTDIR) 159 @$(MKDIR) $(DISTDIR) 160 svn export $(SVNROOT) $(DISTDIR)/$(DISTNAME) 161 162 $(DISTDIR)/$(DISTNAME).tar.gz: $(VERFILE) 163 cd $(DISTDIR); tar zcf $(DISTNAME).tar.gz $(DISTNAME) 164 165 $(DISTDIR)/$(DISTNAME).tar.bz2: $(VERFILE) 166 cd $(DISTDIR); tar jcf $(DISTNAME).tar.bz2 $(DISTNAME) 167 168 $(DISTDIR)/$(DISTNAME).zip: $(VERFILE) 169 cd $(DISTDIR); zip -qr9 $(DISTNAME).zip $(DISTNAME) 170 171 dist-src: \ 172 $(DISTDIR)/$(DISTNAME).tar.gz \ 173 $(DISTDIR)/$(DISTNAME).tar.bz2 \ 174 $(DISTDIR)/$(DISTNAME).zip 175 @#RPM-src? 176 @#DEB-src? 177 178 .PHONY: all clean distclean plugins dist-src -
backends/platform/ds/arm9/makefile
440 440 441 441 #--------------------------------------------------------------------------------- 442 442 %.nds: %.bin 443 @echo ndstool -c $@ -9 scummvm.bin $(ARM7BIN) -b ../../$(LOGO) "$(shell basename $@);ScummVM 0.11.0svn;DS Port"444 ndstool -c $@ -9 scummvm.bin $(ARM7BIN) -b ../../$(LOGO) "$(shell basename $@);ScummVM 0.11.0svn;DS Port"443 @echo ndstool -c $@ -9 scummvm.bin $(ARM7BIN) -b ../../$(LOGO) "$(shell basename $@);ScummVM $(VERSION);DS Port" 444 ndstool -c $@ -9 scummvm.bin $(ARM7BIN) -b ../../$(LOGO) "$(shell basename $@);ScummVM $(VERSION);DS Port" 445 445 dsbuild $@ -l ../ndsloader.bin 446 446 447 447 padbin 16 $(basename $@).ds.gba -
Makefile
9 9 DEFINES := -DHAVE_CONFIG_H 10 10 LDFLAGS := 11 11 INCLUDES := -I. -I$(srcdir) -I$(srcdir)/engines 12 LIBS := 13 OBJS := 12 LIBS := 13 OBJS := 14 DEPDIR := .deps 14 15 15 16 MODULES := 16 17 MODULE_DIRS := -
ports.mk
24 24 rm -rf "$(DESTDIR)$(PREFIX)/share/doc/scummvm/" 25 25 rm -rf "$(DESTDIR)$(DATADIR)/scummvm/" 26 26 27 dist:28 $(RM) $(ZIPFILE)29 $(ZIP) $(ZIPFILE) $(DISTFILES)30 31 27 deb: 32 28 ln -sf dists/debian; 33 29 debian/prepare … … 36 32 37 33 # Special target to create a application wrapper for Mac OS X 38 34 bundle_name = ScummVM.app 39 bundle: scummvm-static 35 bundle: scummvm-static $(srcdir)/dists/macosx/Info.plist 40 36 mkdir -p $(bundle_name)/Contents/MacOS 41 37 mkdir -p $(bundle_name)/Contents/Resources 42 38 echo "APPL????" > $(bundle_name)/Contents/PkgInfo … … 52 48 $(srcdir)/tools/credits.pl --rtf > $(bundle_name)/Contents/Resources/Credits.rtf 53 49 strip $(bundle_name)/Contents/MacOS/scummvm 54 50 55 iphonebundle: 51 iphonebundle: $(srcdir)/dists/iphone/Info.plist 56 52 mkdir -p $(bundle_name) 57 53 cp $(srcdir)/dists/iphone/Info.plist $(bundle_name)/ 58 54 cp $(srcdir)/gui/themes/modern.ini $(bundle_name)/ … … 177 173 cp README $(AOS4PATH)/README.txt 178 174 cp /sdk/local/documentation/SDL-1.2.9/README-SDL.txt $(AOS4PATH) 179 175 180 .PHONY: deb bundle osxsnap win32dist distinstall uninstall176 .PHONY: deb bundle osxsnap win32dist install uninstall