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