tools/elf4rom/src/Makefile
changeset 34 92d87f2e53c2
equal deleted inserted replaced
33:1af5c1be89f8 34:92d87f2e53c2
       
     1 #
       
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 #
       
     5 # This program is free software: you can redistribute it and/or modify
       
     6 # it under the terms of the GNU Lesser General Public License as published by
       
     7 # the Free Software Foundation, either version 3 of the License, or
       
     8 # (at your option) any later version.
       
     9 #
       
    10 # This program is distributed in the hope that it will be useful,
       
    11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    13 # GNU Lesser General Public License for more details.
       
    14 # 
       
    15 # You should have received a copy of the GNU Lesser General Public License
       
    16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
       
    17 
       
    18 CC=g++
       
    19 CFLAGS=-Wall -O3 -g3
       
    20 CPPFLAGS=-I. -I.. -I$/include/boost
       
    21 BASE_CFLAGS=
       
    22 LDFLAGS=-g -L$(MINGW_HOME)/local/lib
       
    23 LIBS=-lelf -lboost_program_options -lboost_regex -lboost_filesystem
       
    24 ELF4ROM=elf4rom.exe
       
    25 
       
    26 OBJS=dwarfabbrevmanager.o
       
    27 OBJS+=dwarfarangesmanager.o
       
    28 OBJS+=dwarfframemanager.o
       
    29 OBJS+=dwarfinfomanager.o
       
    30 OBJS+=dwarflinemanager.o
       
    31 OBJS+=dwarflocexpr.o
       
    32 OBJS+=dwarflocmanager.o
       
    33 OBJS+=dwarfmanager.o
       
    34 OBJS+=dwarfnamemanager.o
       
    35 OBJS+=dwarfrangesmanager.o
       
    36 OBJS+=dwarfutils.o
       
    37 OBJS+=e32romimage.o
       
    38 OBJS+=elfheader.o
       
    39 OBJS+=elfphdr.o
       
    40 OBJS+=elfrom.o
       
    41 OBJS+=elfromerror.o
       
    42 OBJS+=elfsection.o
       
    43 OBJS+=elfsectionmanager.o
       
    44 OBJS+=elfstringtable.o
       
    45 OBJS+=elfsymboltablemanager.o
       
    46 OBJS+=filefragment.o
       
    47 OBJS+=inputfile.o
       
    48 OBJS+=main.o
       
    49 OBJS+=outputfile.o
       
    50 OBJS+=processoptions.o
       
    51 
       
    52 %.o: %.cpp
       
    53 	$(CC) $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
       
    54 
       
    55 $(ELF4ROM): $(OBJS)
       
    56 	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
       
    57 
       
    58 clean:
       
    59 	rm -f $(OBJS) $(ELF4ROM)