# HG changeset patch # User Mike Kinghan # Date 1258365884 0 # Node ID 37428ad74fc22f10940b50f5160e18af54a8d080 Initial commit. diff -r 000000000000 -r 37428ad74fc2 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,4 @@ +syntax: glob +*~ +*.o + diff -r 000000000000 -r 37428ad74fc2 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,146 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the Symbian build tools components. + +epocroot := $(dir $(realpath ../epoc32)) +ifneq '$(epocroot)' '' +epocroot := $(patsubst %/,%,$(epocroot)) +$(warning WARNING: EPOCROOT not set. Assuming $(epocroot)) +export EPOCROOT=$(epocroot) +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +endif + +garage = $(EPOCROOT)/build/makefiles-garage +garage_makefiles = $(shell find $(garage) -name Makefile) +targets = $(notdir $(patsubst %/Makefile,%,$(garage_makefiles))) +clean_targets = $(addsuffix -clean,$(targets)) +garage_make_dirs = $(patsubst %/Makefile,%,$(garage_makefiles)) +make_dirs = $(patsubst $(garage)%,$(EPOCROOT)/build%,$(garage_make_dirs)) +makefiles = $(patsubst $(garage)/%,$(EPOCROOT)/build/%,$(garage_makefiles)) +raptor_linux_binaries = $(EPOCROOT)/build/sbsv2/raptor/linux-* +new_subdirs = $(EPOCROOT)/build/imgtools/romtools/r_t_areaset +subdirs = imgtools e32tools sbsv2 srctools buildframework buildtoolguides bintools + +.PHONY: all tools export gen_preinclude clean distclean deploy_makefiles gather_makefiles help \ +sbs_comp_list sbs_targ_list list_hacks list_prereqs + +all: tools + +tools: $(preinclude) $(makefiles) + for dir in $(subdirs); do $(MAKE) -C $$dir; done + + +#export: tools +# for dir in $(subdirs); do $(MAKE) -C $$dir export; done + +clean: $(makefiles) + for dir in $(subdirs); do $(MAKE) -C $$dir clean; done + +distclean: clean + rm -f -r $(makefiles) $($(preinclude) $(linux_gcc_defs_inc) $(raptor_linux_binaries) $(new_subdirs) + +help: + @echo "Build the Symbian build tools by conventional GNU/Linux means." + @echo "PHONY targets:" + @echo "" + @echo " help" + @echo " all - Build all real targets (default)" + @echo " clean - Remove all build object files, libraries and executables" + @echo " TARGET-clean - clean the real target TARGET" + @echo " distclean - Remove everything but the original files" + @echo " deploy_makefiles - Copy makefiles from the garage to the locations where they run" + @echo " gather_makefiles - Gather any new or updated makefiles from the places where they run into the garage" + @echo " export - TODO: No exports are implemented yet" + @echo " what - TODO: \"What is built?\" not implemented yet" + @echo " TARGET-what - TODO: \"What is built for TARGET?\" not implemented yet" + @echo " sbs_comp_list - List the components that sbs would find (BLD.INF files)" + @echo " sbs_targ_list - List the targets that sbs would find (MMP files)" + @echo " list_prereqs - List the dependency graph of final targets" + @echo " list_hacks - List the targets and files for which hacks are currently applied." + @echo " The hacks are applied by the make and removed by clean." + @echo "" + @echo "Real targets in hierarchy:" + @echo "" + @for file in $(sort $(garage_makefiles)); do \ + dummy=`grep 'include $$(EPOCROOT)/build/makefiles-garage/todo.mk' $$file 2> /dev/null`;\ + todo=;\ + file=$${file#$(garage)/};\ + file=$${file%/Makefile};\ + targ=$${file##*/};\ + file=$${file%/*};\ + file=$${file%$${targ}};\ + file=`echo $$file | sed -e 's|/||g' -`;\ + file=$${file//?/-};\ + if [ "$${dummy}" != "" ]; then todo=' ### TODO ###'; fi; \ + echo " $$file$$targ$$todo";\ + done + +$(makefiles): $(EPOCROOT)/build/%: $(garage)/% + mkdir -p $(dir $@) && cp $< $@ + +deploy_makefiles: $(makefiles) + +gather_makefiles: + for dir in $(subdirs); do \ + grep --include Makefile -r -e 'include $$(EPOCROOT)/build/makefiles-garage/global-make-env.mk' $$dir | \ + sed -e 's|:include $$(EPOCROOT)/build/makefiles-garage/global-make-env.mk||g' -e 's|$(EPOCROOT)/build/||g' - | while read makefile; do \ + if [ ! -f $(garage)/$$makefile ]; then \ + echo "### Garaging new makefile $(garage)/$$makefile ###" ;\ + cp -f --parents $$makefile $(garage); \ + else if [ $(EPOCROOT)/build/$$makefile -nt $(garage)/$$makefile ]; then \ + if [ "`diff $(EPOCROOT)/build/$$makefile $(garage)/$$makefile`" != "" ]; then \ + echo "### Updating garaged makefile $(garage)/$$makefile ###" ;\ + cp -f --parents $$makefile $(garage); \ + fi; \ + fi; \ + fi; \ + done; \ + done + +sbs_comp_list: + @for file in `find . -iname 'bld.inf'`; do echo $${file}; done + +sbs_targ_list: + @for file in `find . -iname '*.mmp'`; do echo $${file}; done + +list_hacks: $(makefiles) + @for make_dir in $(sort $(make_dirs)); do \ + $(MAKE) -s -C $$make_dir query=1 targ=$${make_dir##*/} hacks; \ + done + +list_prereqs: $(makefiles) + @for make_dir in $(sort $(make_dirs)); do \ + $(MAKE) -s -C $$make_dir query=1 targ=$${make_dir##*/} prereqs; \ + done + +$(targets): $(preinclude) $(makefiles) + garage_makedir=`find $(garage) -name $@`;\ + makedir=$${garage_makedir##$(garage)/};\ + makedir=$(EPOCROOT)/build/$${makedir};\ + $(MAKE) -C $${makedir} + +$(clean_targets): $(makefiles) + targ=$@; \ + targ=$${targ%-clean}; \ + garage_makedir=`find $(garage) -name $${targ}`;\ + echo $$targ; \ + makedir=$${garage_makedir##$(garage)/};\ + makedir=$(EPOCROOT)/build/$${makedir};\ + $(MAKE) -C $${makedir} clean + diff -r 000000000000 -r 37428ad74fc2 README.TXT --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.TXT Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,42 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is readme file for a building the Symbian build tools +# by conventional GNU/Linux means. + +To use this package, first clone the Symbian build tools +repository from //http://developer.symbian.org/oss/MCL/sftools/dev/build. To be +sure of getting the latest sources with which this package has been tested, +clone the repository at changeset number be27ed110b50, i.e. + +$ hg clone -r be27ed110b50 http://developer.symbian.org/oss/MCL/sftools/dev/build + +I assume you clone the repository at ~/somewhere/sftools/dev/build. + +Then from the directory containing this file, copy the Makefile and the directory +'makefiles-garage' into ~/somewhere/sftools/dev/build. + +Then: + +$ cd ~/somewhere/sftools/dev/build +$ make help + +Study the help, then: + +$ make + +This package is work in progress. Right now, it only makes a subset of the +tools libraries and executables. It does make any tools exports or any kind of install. + +# EOF + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/bintools/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/bintools/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,36 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the bintools components. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +subdirs = checklib elftools evalid rcomp + +prereqs = + +.PHONY: all clean $(prereqs) + +all: $(prereqs) + for file in $(subdirs); do $(MAKE) -C $$file; done + +$(prereqs) : $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +clean: + for file in $(subdirs); do $(MAKE) -C $$file clean; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/bintools/checklib/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/bintools/checklib/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,26 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for checklib. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +todo_target = checklib +include $(EPOCROOT)/build/makefiles-garage/todo.mk +all: todo + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/bintools/elftools/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/bintools/elftools/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,36 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the elftools components. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +subdirs = elfdump elftran getexports genstubs + +prereqs = + +.PHONY: all clean $(prereqs) + +all: $(prereqs) + for file in $(subdirs); do $(MAKE) -C $$file; done + +$(prereqs) : $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +clean: + for file in $(subdirs); do $(MAKE) -C $$file clean; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/bintools/elftools/elfdump/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/bintools/elftools/elfdump/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,51 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for elfdump. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = -I ../inc -I $(EPOCROOT)/include/tools + +lib_opts = + +exe = elfdump + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) +LDFLAGS = $(lib_opts) $(global_ld_flags) + +prereqs = + +srcs = elfdump.cpp + +.PHONY: all clean $(prereqs) + +all: $(exe) + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(prereqs): $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +$(exe): $(objs) $(prereqs) + $(CC) -o $@ $(objs) $(LDFLAGS) + +clean: + rm -f $(objs) $(exe) + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/bintools/elftools/elftran/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/bintools/elftools/elftran/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,84 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for elftran. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = \ +-I ../inc \ +-I ../../../e32tools/e32lib/e32image/inc \ +-I ../../../imgtools/imglib/compress \ +-I $(EPOCROOT)/epoc32/include/tools + +lib_opts = + +exe = elftran + +CPPFLAGS = -D__SUPPORT_ELF_FILES__ $(cpp_inc_paths) $(global_cpp_flags) +LDFLAGS = $(lib_opts) $(global_ld_flags) + +prereqs = + +srcs = elf_file.cpp elf_dlld.cpp elf_imp.cpp elf_reloc.cpp elf_tran.cpp \ +../../../imgtools/imglib/e32uid/e32uid.cpp \ +../../../imgtools/imglib/host/h_file.cpp \ +../../../imgtools/imglib/host/h_mem.cpp \ +../../../imgtools/imglib/host/h_utl.cpp \ +../../../e32tools/e32lib/e32image/e32image.cpp \ +../../../e32tools/e32lib/e32image/tr_main.cpp \ +../../../e32tools/e32lib/e32image/imgdump.cpp \ +../../../e32tools/e32lib/e32image/deflate/decode.cpp \ +../../../e32tools/e32lib/e32image/deflate/encode.cpp \ +../../../e32tools/e32lib/e32image/deflate/deflate.cpp \ +../../../e32tools/e32lib/e32image/deflate/inflate.cpp \ +../../../e32tools/e32lib/e32image/deflate/panic.cpp \ +../../../e32tools/e32lib/e32image/deflate/compress.cpp \ +../../../imgtools/imglib/compress/byte_pair.cpp \ +../../../imgtools/imglib/compress/pagedcompress.cpp + +fixfiles = ../inc/e32ldfmt.h +fixbackups = $(addsuffix .original,$(fixfiles)) + +.PHONY: all clean $(prereqs) + +all: $(exe) + +$(srcs): fixes + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(prereqs): $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +$(exe): $(objs) $(prereqs) + $(CC) -o $@ $(objs) $(LDFLAGS) + +clean: remove_fixes + rm -f $(objs) $(exe) + +fixes: $(fixbackups) + +remove_fixes: + for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%original}; fi; done + +../inc/e32ldfmt.h.original: + cp $(basename $@) $@ && \ + sed -e 's|fstream.h|fstream|g' -i $(basename $@) + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/bintools/elftools/genstubs/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/bintools/elftools/genstubs/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,51 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for genstubs. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = -I ../inc -I $(EPOCROOT)/epoc32/include/tools + +lib_opts = + +exe = genstubs + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) +LDFLAGS = $(lib_opts) $(global_ld_flags) + +prereqs = + +srcs = genstubs.cpp + +.PHONY: all clean $(prereqs) + +all: $(exe) + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(prereqs): $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +$(exe): $(objs) $(prereqs) + $(CC) -o $@ $(objs) $(LDFLAGS) + +clean: + rm -f $(objs) $(exe) + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/bintools/elftools/getexports/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/bintools/elftools/getexports/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,66 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for getexports. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = -I ../inc -I $(EPOCROOT)/epoc32/include/tools + +lib_opts = + +exe = getexports + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) -Dstricmp=_stricmp +LDFLAGS = $(lib_opts) $(global_ld_flags) + +prereqs = + +srcs = geninf.cpp + +fixfiles = geninf.cpp +fixbackups = $(addsuffix .original,$(fixfiles)) + + +.PHONY: all clean $(prereqs) + +all: $(exe) + +$(srcs): fixes + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(prereqs): $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +$(exe): $(objs) $(prereqs) + $(CC) -o $@ $(objs) $(LDFLAGS) + +clean: remove_fixes + rm -f $(objs) $(exe) + +fixes: $(fixbackups) + +remove_fixes: + for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%original}; fi; done + +geninf.cpp.original: + cp $(basename $@) $@ && \ + sed -e 's|stricmp|strcmp|g' -i $(basename $@) + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/bintools/evalid/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/bintools/evalid/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,26 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for evalid. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +todo_target = evalid +include $(EPOCROOT)/build/makefiles-garage/todo.mk +all: todo + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/bintools/rcomp/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/bintools/rcomp/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,26 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for rcomp. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +todo_target = rcomp +include $(EPOCROOT)/build/makefiles-garage/todo.mk +all: todo + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/buildframework/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/buildframework/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,26 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the buildframework components. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +todo_target = buildframework +include $(EPOCROOT)/build/makefiles-garage/todo.mk +all: todo + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/buildtoolguides/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/buildtoolguides/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,26 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the buildtoolguides components. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +todo_target = buildtoolguides +include $(EPOCROOT)/build/makefiles-garage/todo.mk +all: todo + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/e32tools/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/e32tools/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,34 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the e32tools c components. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +subdirs = e32lib elf2e32 + +.PHONY: all clean export + +all: + for file in $(subdirs); do $(MAKE) -C $$file; done + +export: all + for file in $(subdirs); do $(MAKE) -C $$file export; done + +clean: + for file in $(subdirs); do $(MAKE) -C $$file clean; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/e32tools/e32lib/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/e32tools/e32lib/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,32 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the e32lib components. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +subdirs = seclib + +.PHONY: all clean + + +all: + for dir in $(subdirs); do $(MAKE) -C $$dir; done + +clean: + for dir in $(subdirs); do $(MAKE) -C $$dir clean; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/e32tools/e32lib/seclib/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/e32tools/e32lib/seclib/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,27 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the seclib library. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +todo_target = seclib +include $(EPOCROOT)/build/makefiles-garage/todo.mk +all: todo + + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/e32tools/elf2e32/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/e32tools/elf2e32/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,88 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for elf2e32. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = -I source -I include -I $(EPOCROOT)/epoc32/include/tools -include ext/hash_map + +lib_opts = + +exe = elf2e32 + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) +LDFLAGS = $(lib_opts) $(global_ld_flags) + +srcs = source/deffile.cpp source/deflatecompress.cpp source/dll_fb_target.cpp source/dll_rebuild_target.cpp \ +source/e32exporttable.cpp source/filedump.cpp source/e32imagefile.cpp source/elf2e32.cpp source/elffilesupplied.cpp \ +source/errorhandler.cpp source/exetarget.cpp source/exexp_fb_target.cpp source/exexp_rebuild_target.cpp \ +source/export_type_fb_target.cpp source/export_type_rebuild_target.cpp source/export_type_target.cpp source/h_utl.cpp \ +source/huffman.cpp source/imgdump.cpp source/inflate.cpp source/librarytarget.cpp source/main.cpp \ +source/messagehandler.cpp source/messageimplementation.cpp source/parameterlistinterface.cpp source/parametermanager.cpp \ +source/pl_common.cpp source/pl_dllsymbol.cpp source/pl_dso_handler.cpp source/pl_elfconsumer.cpp \ +source/pl_elfexecutable.cpp source/pl_elfexports.cpp source/pl_elfimportrelocation.cpp source/pl_elfimports.cpp \ +source/pl_elflocalrelocation.cpp source/pl_elfproducer.cpp source/pl_elfrelocation.cpp source/pl_elfrelocations.cpp \ +source/pl_symbol.cpp source/polydll_fb_target.cpp source/polydll_rebuild_target.cpp source/usecasebase.cpp \ +source/byte_pair.cpp source/pagedcompress.cpp source/checksum.cpp source/stdexe_target.cpp + +fixfiles = source/pl_elfexecutable.h source/e32imagefile.cpp source/elffilesupplied.cpp source/parametermanager.cpp +fixbackups = $(addsuffix .original,$(fixfiles)) + +.PHONY: all clean fixes remove_fixes + +all: $(exe) + +$(srcs): fixes + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(exe): $(objs) + $(CC) -o $@ $(objs) $(LDFLAGS) + +clean: remove_fixes + rm -f $(objs) $(exe) + +fixes: $(fixbackups) + +source/pl_elfexecutable.h.original: + cp $(basename $@) $@ && \ + sed -e 's|using std::hash_map;|using __gnu_cxx::hash_map;|g' -i $(basename $@) + +source/e32imagefile.cpp.original: + cp $(basename $@) $@ && \ + sed -e 's|memcpy(iImportSection, aImportSection\.begin(), aImportSectionSize);|memcpy(iImportSection, \&*aImportSection.begin(), aImportSectionSize);|g' \ + -e 's|memcpy(aInfo+aPos, iSymAddrTab\.begin(),|memcpy(aInfo+aPos, \&*iSymAddrTab.begin(),|g' \ + -e 's|memcpy( ((void\*)(aInfo+aPos)), ((void\*)Iter), aOffLen);|memcpy( ((void*)(aInfo+aPos)), ((void*)\&*Iter), aOffLen);|g' \ + -e 's|memcpy(aInfo+aPos, iSymbolNames\.begin(), iSymbolNames\.size());|memcpy(aInfo+aPos, \&*iSymbolNames.begin(), iSymbolNames.size());|g' \ + -i $(basename $@) + +source/elffilesupplied.cpp.original: + cp $(basename $@) $@ && \ + sed -e 's|using namespace std;|using namespace std; using __gnu_cxx::hash_set; using __gnu_cxx::hash;|g' -i $(basename $@) + +source/parametermanager.cpp.original: + cp $(basename $@) $@ && \ + sed -e 's|ParseCapability1(b, e, aCapabilities, invert);|ParseCapability1(\&*b, \&*e, aCapabilities, invert);|g' \ + -e 's|memcpy(symbol, p, len);|memcpy(symbol, \&*p, len);|g' -i $(basename $@) + + +remove_fixes: + for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%original}; fi; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/global-make-env.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/global-make-env.mk Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,102 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This makefile sets up the global environment for building the Symbian build tools. +# It is included by all the makefiles. + +ifndef global_make_env +# include the following only once + +export global_make_env = 1 + +export gcc_patch = $(shell gcc --version | head -n 1 | sed -e 's/^.*\([0-9]\.[0-9]\.[0-9]\)$$/\1/g' -) +export gcc_ver = $(shell gcc --version | head -n 1 | sed -e 's/^.*\([0-9]\.[0-9]\)\.[0-9]$$/\1/g' -) + +linux_gcc_inc_path = $(EPOCROOT)/epoc32/include/tools/linux/gcc +linux_gcc_ver_inc_path = $(linux_gcc_inc_path)/$(gcc_ver) +linux_gcc_patch_inc_path = $(linux_gcc_inc_path)/$(gcc_patch) +linux_gcc_defs_inc = $(linux_gcc_ver_inc_path)/hack_defs.h +preinclude = $(linux_gcc_ver_inc_path)/preinclude.h +make_preinclude := $(shell if [ -f $(preinclude) ]; then echo N; else echo Y; fi) +global_cpp_defs = -D__LINUX__ -D__TOOLS2__ -D__TOOLS__ -D__GCC32__ -D__PLACEMENT_NEW_INLINE -D__PLACEMENT_VEC_NEW_INLINE +global_cpp_inc_paths = -I $(EPOCROOT)/epoc32/include -I $(EPOCROOT)/epoc32/include/tools/linux/gcc/$(gcc_ver) +global_cpp_preinclude = -include $(preinclude) + +export CC = g++ +export global_cpp_flags = $(global_cpp_defs) $(global_cpp_inc_paths) $(global_cpp_preinclude) +export global_cxx_flags = -O2 +export global_prereqs = $(preinclude) +export global_cflags = + +ifeq ($(make_preinclude),Y) +# We need to make the global preinclude.h file + +$(preinclude): $(linux_gcc_defs_inc) + printf "#ifndef PREINCLUDE_H\n"\ +"#include \n"\ +"#include \n"\ +"#include \n"\ +"#include \n"\ +"#include \n"\ +"#include \n"\ +"#include \n"\ +"#endif\n" >> $@ + $(MAKE) + +$(linux_gcc_patch_inc_path): + mkdir -p $@ + + +$(linux_gcc_ver_inc_path) : $(linux_gcc_patch_inc_path) + rm -f $@ + ln -s $< $@ + + +$(linux_gcc_defs_inc): $(linux_gcc_ver_inc_path) + printf "#ifndef HACK_DEFS_H\n"\ +"#define HACK_DEFS_H\n"\ +"#define DIMPORT_C\n"\ +"#define __NO_THROW\n"\ +"#define NONSHARABLE_CLASS(x) class x\n"\ +"#undef _FOFF\n"\ +"#define _FOFF(c,f) (((TInt)&(((c *)0x1000)->f))-0x1000)\n"\ +"#define TEMPLATE_SPECIALIZATION template<>\n"\ +"#undef __ASSERT_COMPILE\n"\ +"#define __ASSERT_COMPILE(x)\n"\ +"#define TAny void\n"\ +"#endif\n" >> $@ + +endif +# End: make the global preinclude.h file + +endif +# End: included only once + +ifdef query +# Running one of the query targets + +hacks: + @if [ "$(fixfiles)" != "" ]; then \ + echo $(targ): hacks for:-; \ + for file in $(fixfiles); do echo " $$file"; done; \ + fi + +prereqs: + @if [ "$(prereqs)" != "" ]; then \ + echo $(targ): needs:-; \ + for prereq in $(prereqs); do echo " $$prereq"; done; \ + fi + +endif +# End: Running one of the query targets + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,37 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the imgtools components. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +subdirs = romtools imglib imgcheck +subtargs = romtools imgcheck + +prereqs = imglib + +.PHONY: all clean $(prereqs) + +all: $(prereqs) + for file in $(subtargs); do $(MAKE) -C $$file; done + +$(prereqs) : $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +clean: + for file in $(subdirs); do $(MAKE) -C $$file clean; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/buildrom/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/buildrom/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,26 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the buildrom components. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +todo_target = buildrom +include $(EPOCROOT)/build/makefiles-garage/todo.mk +all: todo + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/imaker/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/imaker/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,26 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for imaker. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +todo_target = imaker +include $(EPOCROOT)/build/makefiles-garage/todo.mk +all: todo + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/imgcheck/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/imgcheck/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,85 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the imgcheck . + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +prereqs = patchdataprocessor libimgutils + +.PHONY: all clean fixes remove_fixes $(prereqs) + +cpp_inc_paths = -I . -I .libxml -I ../imglib/inc -I ../romtools/rofsbuild \ +-I libimgutils/inc -I inc -I ../imglib/compress + +lib_opts = -lxml2 -L libimgutils -limgutils -L ../imglib/patchdataprocessor -lpatchdataprocessor + +exe = imgcheck + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) +CXXFLAGS = $(global_cxx_flags) -pthread +LDFLAGS = $(global_ld_flags) $(lib_opts) + +srcs = src/cmdlinehandler.cpp src/depchecker.cpp src/hash.cpp src/main.cpp \ +src/imgcheckmanager.cpp src/sidchecker.cpp src/vidchecker.cpp src/common.cpp src/checker.cpp src/reporter.cpp \ +src/exceptionimplementation.cpp src/exceptionreporter.cpp \ +src/cmdlinewriter.cpp src/xmlwriter.cpp src/dbgflagchecker.cpp + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +fixfiles = inc/exceptionimplementation.h inc/xmlwriter.h src/exceptionimplementation.cpp src/xmlwriter.cpp +fixbackups = $(addsuffix .original,$(fixfiles)) + +all: $(exe) + +$(srcs): fixes + +$(prereqs): $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +$(exe): $(objs) $(prereqs) + $(CC) -o $@ $(objs) $(LDFLAGS) + +clean: remove_fixes + rm -f $(objs) $(exe) + for file in $(subdirs); do $(MAKE) -C $$file clean; done + +fixes: $(fixbackups) + +inc/exceptionimplementation.h.original: + cp $(basename $@) $@ && \ + sed -e 's|ofstream iLogStream;|Ofstream iLogStream;|g' -i $(basename $@) + +inc/xmlwriter.h.original: + cp $(basename $@) $@ && \ + sed -e 's|ofstream iXmlFile;|Ofstream iXmlFile;|g' -i $(basename $@) + +src/exceptionimplementation.cpp.original: + cp $(basename $@) $@ && \ + sed '/#include "exceptionimplementation.h"/ a\ +using namespace std;' -i $(basename $@) + +src/xmlwriter.cpp.original: + cp $(basename $@) $@ && \ + sed -e 's|ifstream xslSourceHandle;|Ifstream xslSourceHandle;|g' \ + -e 's|ofstream xslDestHandle|Ofstream xslDestHandle|g' -i $(basename $@) + +remove_fixes: + for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%original}; fi; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/imgcheck/libimgutils/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/imgcheck/libimgutils/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,95 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the imgutils library. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +fixfiles = inc/typedefs.h +fixbackups = $(addsuffix .original,$(fixfiles)) + +cpp_inc_paths = \ +-I ../inc \ +-I ../libimgutils/inc \ +-I ../../imglib/inc \ +-I ../../romtools/rofsbuild \ +-I ../../imglib/compress \ +-I ../../imglib/e32image \ +-I ../../imglib/e32image/deflate \ +-I ../../imglib/inc \ +-I ../../imglib/e32uid \ +-I ../../romtools/rofsbuild \ +-I ../../imglib/patchdataprocessor/include + +lib = libimgutils.a + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) +CXXFLAGS = $(global_cxx_flags) -pthread + +srcs = \ +../../imglib/compress/byte_pair.cpp \ +../../imglib/compress/pagedcompress.cpp \ +../../imglib/e32image/e32image.cpp \ +../../imglib/e32image/deflate/inflate.cpp \ +../../imglib/e32image/deflate/compress.cpp \ +../../imglib/e32image/deflate/decode.cpp \ +../../imglib/e32image/deflate/deflate.cpp \ +../../imglib/e32image/deflate/panic.cpp \ +../../imglib/e32image/deflate/encode.cpp \ +../../imglib/host/h_file.cpp \ +../../imglib/host/h_mem.cpp \ +../../imglib/host/h_utl.cpp \ +../../imglib/e32uid/e32uid.cpp \ +../../romtools/rofsbuild/r_coreimage.cpp \ +../../romtools/rofsbuild/r_build.cpp \ +src/romreader.cpp \ +src/imagereader.cpp \ +src/e32reader.cpp \ +src/rofsreader.cpp \ +src/romimageheader.cpp \ +src/rofsimage.cpp \ +src/utils.cpp \ +src/dirreader.cpp + +all: $(lib) + +.PHONY: all clean fixes remove_fixes + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(srcs): fixes + +$(lib): $(objs) + ar r $@ $(objs) + +clean: remove_fixes + rm -f $(objs) $(lib) + +fixes: $(fixbackups) + +inc/typedefs.h.original: + cp $(basename $@) $@ && \ + sed -e 's|fstream.h|fstream|g' -e 's|iostream.h|iostream|g' \ + -e 's|typedef ios|typedef std::ios|g' \ + -e 's|typedef ofstream|typedef std::ofstream|g' \ + -e 's|typedef ifstream|typedef std::ifstream|g' -i $(basename $@) + +remove_fixes: + for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%original}; fi; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/imglib/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/imglib/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,31 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the imglib components. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +subdirs = filesystem memmap parameterfileprocessor patchdataprocessor + +all: + for file in $(subdirs); do $(MAKE) -C $$file; done + +.PHONY: all clean + +clean: + for file in $(subdirs); do $(MAKE) -C $$file clean; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/imglib/filesystem/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/imglib/filesystem/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,58 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the filesystem library. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = -I include + +lib = libfilesystem.a + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) + +srcs = \ +source/cluster.cpp \ +source/directory.cpp \ +source/dirregion.cpp \ +source/errorhandler.cpp \ +source/fat16bootsector.cpp \ +source/fat16filesystem.cpp \ +source/fat32bootsector.cpp \ +source/fat32filesystem.cpp \ +source/fatbasebootsector.cpp \ +source/filesysteminterface.cpp \ +source/longentry.cpp \ +source/longname.cpp \ +source/messagehandler.cpp \ +source/messageimplementation.cpp \ +source/filesystemclass.cpp + +all: $(lib) + +.PHONY: all patches remove_patches clean + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(lib): $(objs) + ar r $@ $(objs) + +clean: + rm -f $(objs) $(lib) + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/imglib/memmap/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/imglib/memmap/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,44 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the memmap library. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = -I ../inc -I include + +lib = libmemmap.a + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) + +srcs = source/memmap.cpp source/memmaputils.cpp + +all: $(lib) + +.PHONY: all clean + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(lib): $(objs) + ar r $@ $(objs) + +clean: + rm -f $(objs) $(lib) + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/imglib/parameterfileprocessor/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/imglib/parameterfileprocessor/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,44 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the parameterfileprocessor library. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = -I ../inc -I include + +lib = libparameterfileprocessor.a + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) + +srcs = source/parameterfileprocessor.cpp + +all: $(lib) + +.PHONY: all clean + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(lib): $(objs) + ar r $@ $(objs) + +clean: + rm -f $(objs) $(lib) + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/imglib/patchdataprocessor/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/imglib/patchdataprocessor/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,43 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the for patchdataprocessor library. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = -I ../inc -I include \ + +lib = libpatchdataprocessor.a + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) + +srcs = source/patchdataprocessor.cpp + +all: $(lib) + +.PHONY: all clean + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(lib): $(objs) + ar r $@ $(objs) + +clean: + rm -f $(objs) $(lib) + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/romtools/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/romtools/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,42 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the romtools components. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +subdirs = rombuild rofsbuild r_t_areaset +#export_srcs = ../maksym/fixupsym.pl ../maksym/hpsym.pl ../maksym/maksym.pl ../maksym/maksymrofs.pl +#export_dests = $(basename $(export_srcs)) + +prereqs = imglib + +.PHONY: all clean $(prereqs) + +all: $(prereqs) + for file in $(subdirs); do $(MAKE) -C $$file; done + +$(prereqs): $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +#export: all +# for file in $(exports); do cp -f $$file $(EPOCROOT)/epoc32/tools/$${$$file%%.pl}; done + + +clean: + for file in $(subdirs); do $(MAKE) -C $$file clean; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/romtools/r_t_areaset/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/romtools/r_t_areaset/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,80 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for r_t_areaset. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = \ +-I ../../imglib/inc \ +-I ../../imglib/compress \ +-I ../../imglib/patchdataprocessor/include \ +-I ../../imglib/memmap/include + +lib_opts = -lboost_thread-mt \ +-L../../imglib/memmap -lmemmap \ +-L../../imglib/patchdataprocessor -lpatchdataprocessor + +prereqs = memmap patchdataprocessor + +exe = r_t_areaset + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) +LDFLAGS = $(lib_opts) $(global_ld_flags) + +srcs = \ +../rombuild/r_t_areaset.cpp \ +../rombuild/r_areaset.cpp \ +../rombuild/r_dir.cpp \ +../rombuild/r_header.cpp \ +../rombuild/r_obey.cpp \ +../rombuild/r_srec.cpp \ +../rombuild/r_rom.cpp \ +../rombuild/r_global.cpp \ +../rombuild/r_build.cpp \ +../rombuild/r_collapse.cpp \ +../../imglib/e32uid/e32uid.cpp \ +../../imglib/host/h_file.cpp \ +../../imglib/host/h_mem.cpp \ +../../imglib/host/h_utl.cpp \ +../../imglib/e32image/e32image.cpp \ +../../imglib/e32image/deflate/decode.cpp \ +../../imglib/e32image/deflate/encode.cpp \ +../../imglib/e32image/deflate/deflate.cpp \ +../../imglib/e32image/deflate/inflate.cpp \ +../../imglib/e32image/deflate/panic.cpp \ +../../imglib/e32image/deflate/compress.cpp \ +../../imglib/compress/byte_pair.cpp \ +../../imglib/compress/pagedcompress.cpp + +.PHONY: all clean $(prereqs) + +all: $(exe) + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(exe): $(objs) $(prereqs) + $(CC) -o $@ $(objs) $(LDFLAGS) + +$(prereqs): $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +clean: + rm -f $(objs) $(exe) + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/romtools/readimage/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/romtools/readimage/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,25 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for readimage. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +todo_target = seclib +include $(EPOCROOT)/build/makefiles-garage/todo.mk +all: todo diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/romtools/rofsbuild/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/romtools/rofsbuild/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,82 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for rofsbuild. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = \ +-I ../../imglib/compress \ +-I ../../imglib/inc \ +-I ../../imglib/patchdataprocessor/include \ +-I ../../imglib/parameterfileprocessor/include \ +-I ../../imglib/memmap/include \ +-I ../../imglib/filesystem/include + +lib_opts = -lboost_thread-mt \ +-L../../imglib/memmap -lmemmap \ +-L../../imglib/patchdataprocessor -lpatchdataprocessor \ +-L../../imglib/parameterfileprocessor -lparameterfileprocessor \ +-L../../imglib/filesystem -lfilesystem + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) +LDFLAGS = $(lib_opts) $(global_ld_flags) + +prereqs = memmap patchdataprocessor parameterfileprocessor filesystem + +srcs = \ +r_obey.cpp \ +r_build.cpp \ +r_rofs.cpp \ +r_driveimage.cpp \ +r_driveutl.cpp \ +rofsbuild.cpp \ +r_coreimage.cpp \ +r_smrimage.cpp \ +../../imglib/host/h_utl.cpp \ +../../imglib/host/h_file.cpp \ +../../imglib/host/h_mem.cpp \ +../../imglib/e32uid/e32uid.cpp \ +../../imglib/e32image/e32image.cpp \ +../../imglib/e32image/deflate/decode.cpp \ +../../imglib/e32image/deflate/encode.cpp \ +../../imglib/e32image/deflate/deflate.cpp \ +../../imglib/e32image/deflate/inflate.cpp \ +../../imglib/e32image/deflate/panic.cpp \ +../../imglib/e32image/deflate/compress.cpp \ +../../imglib/compress/byte_pair.cpp \ +../../imglib/compress/pagedcompress.cpp + +exe = rofsbuild + +.PHONY: all clean $(prereqs) + +all: $(exe) + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(prereqs): $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +$(exe): $(objs) $(prereqs) + $(CC) -o $@ $(objs) $(LDFLAGS) + +clean: + rm -f $(objs) $(exe) + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/romtools/rombuild/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/romtools/rombuild/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,69 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for rombuild. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +cpp_inc_paths = \ +-I ../../imglib/compress \ +-I ../../imglib/inc \ +-I ../../imglib/patchdataprocessor/include \ +-I ../../imglib/parameterfileprocessor/include \ +-I ../../imglib/memmap/include + +lib_opts = -lboost_thread-mt \ +-L../../imglib/memmap -lmemmap \ +-L../../imglib/patchdataprocessor -lpatchdataprocessor \ +-L../../imglib/parameterfileprocessor -lparameterfileprocessor \ + +exe = rombuild + +CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) +LDFLAGS = $(lib_opts) $(global_ld_flags) + +prereqs = memmap patchdataprocessor parameterfileprocessor + +srcs = r_dir.cpp r_header.cpp r_obey.cpp r_srec.cpp r_rom.cpp rombuild.cpp r_build.cpp r_collapse.cpp r_global.cpp r_areaset.cpp \ +r_coreimage.cpp r_coreimagereader.cpp \ +../../imglib/e32uid/e32uid.cpp \ +../../imglib/host/h_file.cpp ../../imglib/host/h_mem.cpp ../../imglib/host/h_utl.cpp \ +../../imglib/e32image/e32image.cpp \ +../../imglib/e32image/deflate/decode.cpp ../../imglib/e32image/deflate/encode.cpp ../../imglib/e32image/deflate/deflate.cpp \ +../../imglib/e32image/deflate/inflate.cpp ../../imglib/e32image/deflate/panic.cpp \ +../../imglib/e32image/deflate/compress.cpp \ +../../imglib/compress/byte_pair.cpp \ +../../imglib/compress/pagedcompress.cpp + +.PHONY: all clean $(prereqs) + +all: $(exe) + +bases = $(basename $(srcs)) + +objs = $(addsuffix .o,$(bases)) + +$(prereqs): $(global_prereqs) + $(MAKE) -C $(EPOCROOT)/build $@ + +$(exe): $(objs) $(prereqs) + $(CC) -o $@ $(objs) $(LDFLAGS) + +clean: + rm -f $(objs) $(exe) + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/imgtools/sisutils/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/imgtools/sisutils/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,26 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the sisutils library. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +todo_target = seclib +include $(EPOCROOT)/build/makefiles-garage/todo.mk +all: todo + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/sbsv2/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/sbsv2/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,31 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the sbsv2 components. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +subdirs = raptor + +.PHONY: all clean + +all: + for dir in $(subdirs); do $(MAKE) -C $$dir; done + +clean: + for file in $(subdirs); do $(MAKE) -C $$file clean; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/sbsv2/raptor/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/sbsv2/raptor/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,33 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for the raptor components. + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +subdirs = util +export CC=gcc +export SBS_HOME = $(patsubst %/,%,$(dir $(realpath Makefile))) + +.PHONY: all clean + +all: + for dir in $(subdirs); do $(MAKE) -C $$dir; done + +clean: + for file in $(subdirs); do $(MAKE) -C $$file clean; done + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/srctools/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/srctools/Makefile Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,26 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# Mike Kinghan, mikek@symbian.org +# +# Contributors: +# +# Description: +# This is a Linux makefile for srctools components. + + +ifdef EPOCROOT +include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk +else +$(error EPOCROOT must be defined as the parent directory of your epoc32 tree) +endif + +todo_target = srctools +include $(EPOCROOT)/build/makefiles-garage/todo.mk +all: todo + diff -r 000000000000 -r 37428ad74fc2 makefiles-garage/todo.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefiles-garage/todo.mk Mon Nov 16 10:04:44 2009 +0000 @@ -0,0 +1,13 @@ +# Dummy makefile for TODO targets + +todo: + @echo "###############################################" + @echo "### TODO: Build for $(todo_target) ############" + @echo "###############################################" + +clean: + @echo "###############################################" + @echo "### TODO: Clean for $(todo_target) ############" + @echo "###############################################" + +