javacommons/security/tsrc/build/Makefile
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 #
       
     2 # Copyright (c) 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 "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 TARGET = AllTests
       
    18 
       
    19 SRCS = ../src/securityunittests.cpp ../src/testcertchains.cpp
       
    20 
       
    21 OBJS = $(SRCS:.cpp=.o)
       
    22 
       
    23 CC = g++
       
    24 
       
    25 TARGET_DIR = .
       
    26 
       
    27 LIBS =\
       
    28  -ljavastorage\
       
    29  -ljavasecurity\
       
    30  -lCppUTest
       
    31 
       
    32 CPP_U_TEST = $(JAVA_SRC_ROOT)/tools/cpputest
       
    33 
       
    34 LIBDIR = $(CPP_U_TEST)/lib
       
    35 
       
    36 LIBPATH =\
       
    37  -L$(LIBDIR) -L$(JAVA_BIN_ROOT)/lib -L$(JAVA_BIN_ROOT)/jsr/lib
       
    38 
       
    39 INCLUDE =\
       
    40  -I$(CPP_U_TEST)/include/CppUTest\
       
    41  -I$(CPP_U_TEST)/include/Platforms/Gcc\
       
    42  -I$(JAVA_SRC_ROOT)/inc\
       
    43  -I../src/utils/
       
    44 
       
    45 include $(CPP_U_TEST)/build/TestExeMakefile
       
    46 
       
    47 %.o:	%.cpp
       
    48 	$(CXX) $(CFLAGS) $(INCLUDE) -c $< -o $@
       
    49 
       
    50 $(TARGET):$(OBJS)
       
    51 	$(CXX) -o $(TARGET_DIR)/$@ $^ $(LIBPATH) $(LIBS)
       
    52 
       
    53 clean:
       
    54 	-$(RM) -f ../src/*~ ../src/*.o $(TARGET_DIR)/$(TARGET)
       
    55 
       
    56