makefiles-garage/imgtools/romtools/rombuild/Makefile
changeset 0 37428ad74fc2
child 1 820b22e13ff1
equal deleted inserted replaced
-1:000000000000 0:37428ad74fc2
       
     1 # Copyright (c) 2009 Symbian Foundation Ltd
       
     2 # This component and the accompanying materials are made available
       
     3 # under the terms of the License "Eclipse Public License v1.0"
       
     4 # which accompanies this distribution, and is available
       
     5 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     6 #
       
     7 # Initial Contributors:
       
     8 # Symbian Foundation Ltd - initial contribution.
       
     9 # Mike Kinghan, mikek@symbian.org
       
    10 #
       
    11 # Contributors:
       
    12 #
       
    13 # Description:
       
    14 # This is a Linux makefile for rombuild. 
       
    15 
       
    16 
       
    17 ifdef EPOCROOT
       
    18 include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk
       
    19 else
       
    20 $(error EPOCROOT must be defined as the parent directory of your epoc32 tree)
       
    21 endif
       
    22 
       
    23 cpp_inc_paths = \
       
    24 -I ../../imglib/compress \
       
    25 -I ../../imglib/inc \
       
    26 -I ../../imglib/patchdataprocessor/include \
       
    27 -I ../../imglib/parameterfileprocessor/include \
       
    28 -I ../../imglib/memmap/include
       
    29 
       
    30 lib_opts = -lboost_thread-mt \
       
    31 -L../../imglib/memmap -lmemmap \
       
    32 -L../../imglib/patchdataprocessor -lpatchdataprocessor \
       
    33 -L../../imglib/parameterfileprocessor -lparameterfileprocessor \
       
    34 
       
    35 exe = rombuild
       
    36 
       
    37 CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags)
       
    38 LDFLAGS = $(lib_opts) $(global_ld_flags)
       
    39 
       
    40 prereqs = memmap patchdataprocessor parameterfileprocessor
       
    41 
       
    42 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 \
       
    43 r_coreimage.cpp r_coreimagereader.cpp \
       
    44 ../../imglib/e32uid/e32uid.cpp \
       
    45 ../../imglib/host/h_file.cpp ../../imglib/host/h_mem.cpp ../../imglib/host/h_utl.cpp \
       
    46 ../../imglib/e32image/e32image.cpp \
       
    47 ../../imglib/e32image/deflate/decode.cpp ../../imglib/e32image/deflate/encode.cpp ../../imglib/e32image/deflate/deflate.cpp \
       
    48 ../../imglib/e32image/deflate/inflate.cpp ../../imglib/e32image/deflate/panic.cpp \
       
    49 ../../imglib/e32image/deflate/compress.cpp \
       
    50 ../../imglib/compress/byte_pair.cpp \
       
    51 ../../imglib/compress/pagedcompress.cpp
       
    52 
       
    53 .PHONY: all clean $(prereqs)
       
    54 
       
    55 all: $(exe)
       
    56 
       
    57 bases = $(basename $(srcs))
       
    58 
       
    59 objs = $(addsuffix .o,$(bases))
       
    60 
       
    61 $(prereqs): $(global_prereqs)
       
    62 	$(MAKE) -C $(EPOCROOT)/build $@
       
    63  
       
    64 $(exe): $(objs) $(prereqs)
       
    65 	$(CC) -o $@ $(objs) $(LDFLAGS)
       
    66 
       
    67 clean:
       
    68 	rm -f $(objs) $(exe)
       
    69