diff -r e8e63152f320 -r 2a9601315dfc javacommons/security/tsrc/build/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javacommons/security/tsrc/build/Makefile Mon May 03 12:27:20 2010 +0300 @@ -0,0 +1,56 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +TARGET = AllTests + +SRCS = ../src/securityunittests.cpp ../src/testcertchains.cpp + +OBJS = $(SRCS:.cpp=.o) + +CC = g++ + +TARGET_DIR = . + +LIBS =\ + -ljavastorage\ + -ljavasecurity\ + -lCppUTest + +CPP_U_TEST = $(JAVA_SRC_ROOT)/tools/cpputest + +LIBDIR = $(CPP_U_TEST)/lib + +LIBPATH =\ + -L$(LIBDIR) -L$(JAVA_BIN_ROOT)/lib -L$(JAVA_BIN_ROOT)/jsr/lib + +INCLUDE =\ + -I$(CPP_U_TEST)/include/CppUTest\ + -I$(CPP_U_TEST)/include/Platforms/Gcc\ + -I$(JAVA_SRC_ROOT)/inc\ + -I../src/utils/ + +include $(CPP_U_TEST)/build/TestExeMakefile + +%.o: %.cpp + $(CXX) $(CFLAGS) $(INCLUDE) -c $< -o $@ + +$(TARGET):$(OBJS) + $(CXX) -o $(TARGET_DIR)/$@ $^ $(LIBPATH) $(LIBS) + +clean: + -$(RM) -f ../src/*~ ../src/*.o $(TARGET_DIR)/$(TARGET) + +