makefiles-garage/imgtools/romtools/rofsbuild/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 rofsbuild. 
       
    15 
       
    16 ifdef EPOCROOT
       
    17 include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk
       
    18 else
       
    19 $(error EPOCROOT must be defined as the parent directory of your epoc32 tree)
       
    20 endif
       
    21 
       
    22 cpp_inc_paths = \
       
    23 -I ../../imglib/compress \
       
    24 -I ../../imglib/inc \
       
    25 -I ../../imglib/patchdataprocessor/include \
       
    26 -I ../../imglib/parameterfileprocessor/include \
       
    27 -I ../../imglib/memmap/include \
       
    28 -I ../../imglib/filesystem/include
       
    29 
       
    30 lib_opts = -lboost_thread-mt \
       
    31 -L../../imglib/memmap -lmemmap \
       
    32 -L../../imglib/patchdataprocessor -lpatchdataprocessor \
       
    33 -L../../imglib/parameterfileprocessor -lparameterfileprocessor \
       
    34 -L../../imglib/filesystem -lfilesystem
       
    35 
       
    36 CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags)
       
    37 LDFLAGS = $(lib_opts) $(global_ld_flags)
       
    38 
       
    39 prereqs = memmap patchdataprocessor parameterfileprocessor filesystem
       
    40 
       
    41 srcs = \
       
    42 r_obey.cpp \
       
    43 r_build.cpp \
       
    44 r_rofs.cpp \
       
    45 r_driveimage.cpp \
       
    46 r_driveutl.cpp \
       
    47 rofsbuild.cpp \
       
    48 r_coreimage.cpp \
       
    49 r_smrimage.cpp \
       
    50 ../../imglib/host/h_utl.cpp \
       
    51 ../../imglib/host/h_file.cpp \
       
    52 ../../imglib/host/h_mem.cpp \
       
    53 ../../imglib/e32uid/e32uid.cpp \
       
    54 ../../imglib/e32image/e32image.cpp \
       
    55 ../../imglib/e32image/deflate/decode.cpp \
       
    56 ../../imglib/e32image/deflate/encode.cpp \
       
    57 ../../imglib/e32image/deflate/deflate.cpp \
       
    58 ../../imglib/e32image/deflate/inflate.cpp \
       
    59 ../../imglib/e32image/deflate/panic.cpp \
       
    60 ../../imglib/e32image/deflate/compress.cpp \
       
    61 ../../imglib/compress/byte_pair.cpp \
       
    62 ../../imglib/compress/pagedcompress.cpp
       
    63 
       
    64 exe = rofsbuild
       
    65 
       
    66 .PHONY: all clean $(prereqs)
       
    67 
       
    68 all: $(exe)
       
    69 
       
    70 bases = $(basename $(srcs))
       
    71 
       
    72 objs = $(addsuffix .o,$(bases))
       
    73 
       
    74 $(prereqs): $(global_prereqs)
       
    75 	$(MAKE) -C $(EPOCROOT)/build $@
       
    76 
       
    77 $(exe): $(objs) $(prereqs)
       
    78 	$(CC) -o $@ $(objs) $(LDFLAGS)
       
    79 
       
    80 clean:
       
    81 	rm -f $(objs) $(exe)
       
    82