imgtools/imglib/e32image/Makefile.elftran
changeset 2 39c28ec933dd
equal deleted inserted replaced
1:820b22e13ff1 2:39c28ec933dd
       
     1 #
       
     2 # Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of the License "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: 
       
    15 #
       
    16 
       
    17 CXX	 = g++296
       
    18 CXXFLAGS = -D__SUPPORT_ELF_FILES__ -D__LINUX__ -D__GCC32__ -D__TOOLS__ -D EKA2 \
       
    19 		-I $(EPOCROOT)epoc32/include -I ../inc -I ../elftools/inc
       
    20 SOURCE	 = elf_file.cpp elf_dlld.cpp elf_imp.cpp elf_reloc.cpp elf_tran.cpp \
       
    21 	   e32uid.cpp \
       
    22 	   h_file.cpp h_mem.cpp h_utl.cpp \
       
    23 	   e32image.cpp tr_main.cpp imgdump.cpp \
       
    24 	   decode.cpp encode.cpp deflate.cpp inflate.cpp panic.cpp compress.cpp
       
    25 BLDDIR	 = ../build-elftran
       
    26 OBJECT   = $(addprefix $(BLDDIR)/, $(notdir $(SOURCE:.cpp=.o)))
       
    27 TARGET	 = $(BLDDIR)/elftran
       
    28 
       
    29 VPATH	 = ../host ../e32uid ../e32image ../e32image/deflate ../elftools/elftran
       
    30 
       
    31 _dummy := $(shell mkdir -p $(BLDDIR))
       
    32 
       
    33 all: $(TARGET)
       
    34 
       
    35 $(TARGET): $(OBJECT)
       
    36 	$(CXX) $^ -o $@
       
    37 	strip $@
       
    38 	
       
    39 $(OBJECT): $(BLDDIR)/%.o: %.cpp
       
    40 	$(CXX) $(CXXFLAGS) -c $< -o $@
       
    41 
       
    42 clean:
       
    43 	rm -f $(OBJECT) $(TARGET)
       
    44 	-rmdir $(BLDDIR)
       
    45 
       
    46 .PHONY: all clean
       
    47