toolsandutils/e32tools/elftools/Makefile.uidcrc
changeset 0 83f4b4db085c
child 2 99082257a271
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 # Copyright (c) 2000-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__LINUX__ -D__GCC32__ -I $(EPOCROOT)epoc32/include 
       
    18 SOURCE	 = uidcrc.cpp e32uid.cpp
       
    19 BLDDIR	 = ../build-uidcrc
       
    20 OBJECT   = $(addprefix $(BLDDIR)/, $(notdir $(SOURCE:.cpp=.o)))
       
    21 TARGET	 = $(BLDDIR)/uidcrc
       
    22 
       
    23 VPATH	 = ../e32uid
       
    24 
       
    25 _dummy := $(shell mkdir -p $(BLDDIR))
       
    26 
       
    27 all: $(TARGET)
       
    28 
       
    29 $(TARGET): $(OBJECT)
       
    30 	$(CXX) $^ -o $@
       
    31 	strip $@
       
    32 	
       
    33 $(OBJECT): $(BLDDIR)/%.o: %.cpp
       
    34 	$(CXX) $(CXXFLAGS) -c $< -o $@
       
    35 
       
    36 clean:
       
    37 	rm -f $(OBJECT) $(TARGET)
       
    38 	-rmdir $(BLDDIR)
       
    39 
       
    40 .PHONY: all clean
       
    41