os/security/securityanddataprivacytools/securitytools/certapp/GNUmakefile
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/securityanddataprivacytools/securitytools/certapp/GNUmakefile	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,62 @@
     1.4 +# Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +# All rights reserved.
     1.6 +# This component and the accompanying materials are made available
     1.7 +# under the terms of the License "Eclipse Public License v1.0"
     1.8 +# which accompanies this distribution, and is available
     1.9 +# at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +#
    1.11 +# Initial Contributors:
    1.12 +# Nokia Corporation - initial contribution.
    1.13 +#
    1.14 +# Contributors:
    1.15 +#
    1.16 +# Description: 
    1.17 +#
    1.18 +
    1.19 +include GNUmakefile.inc
    1.20 +
    1.21 +INC=-Iutils -Istore-- -Iencdec -Iapi -I.
    1.22 +
    1.23 +CERTAPP_TARGET=	certapp
    1.24 +TARGETS=$(CERTAPP_TARGET) 
    1.25 +
    1.26 +CERTAPP_SRCS=certapp.cpp
    1.27 +CERTAPP_OBJS=$(CERTAPP_SRCS:.cpp=.o)
    1.28 +
    1.29 +ALLSRCS=$(CERTAPP_SRCS)
    1.30 +ALLOBJS=$(ALLSRCS:.cpp=.o)
    1.31 +
    1.32 +LDLIBS_GEN=encdec/encdec.a store--/store--.a utils/utils.a 
    1.33 +LDLIBS_API=api/libcertapp-api.a
    1.34 +
    1.35 +DEPENDFILES=$(ALLOBJS:.o=.d)
    1.36 +
    1.37 +
    1.38 +all: $(TARGETS)
    1.39 +	make -C test
    1.40 +
    1.41 +
    1.42 +$(LDLIBS_GEN) $(LDLIBS_API): % : force
    1.43 +	$(MAKE) -C $(dir $@) $(notdir $@)
    1.44 +
    1.45 +
    1.46 +tags:
    1.47 +	etags *.cpp *.h *.inl */*.cpp */*.h */*.inl */*/*.cpp */*/*.h
    1.48 +	ls -l TAGS
    1.49 +
    1.50 +
    1.51 +$(CERTAPP_TARGET) : $(CERTAPP_OBJS) $(LDLIBS_GEN)
    1.52 +	$(LINK.C) $^ $(LOADLIBES) $(LDLIBS_GEN) -o $@ -lcrypto
    1.53 +
    1.54 +.PHONY: clean
    1.55 +clean: cleanall
    1.56 +
    1.57 +.PHONY: cleanall
    1.58 +cleanall:
    1.59 +	-$(MAKE) -C utils clean
    1.60 +	-$(MAKE) -C store-- clean
    1.61 +	-$(MAKE) -C encdec clean
    1.62 +	-rm -f $(TSTORE_OBJS) $(CERTAPP_OBJS) $(TARGETS) $(DEPENDFILES) core
    1.63 +
    1.64 +
    1.65 +include $(wildcard $(DEPENDFILES))