os/security/securityanddataprivacytools/securitytools/certapp/GNUmakefile
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 # Copyright (c) 2008-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 include GNUmakefile.inc
    17 
    18 INC=-Iutils -Istore-- -Iencdec -Iapi -I.
    19 
    20 CERTAPP_TARGET=	certapp
    21 TARGETS=$(CERTAPP_TARGET) 
    22 
    23 CERTAPP_SRCS=certapp.cpp
    24 CERTAPP_OBJS=$(CERTAPP_SRCS:.cpp=.o)
    25 
    26 ALLSRCS=$(CERTAPP_SRCS)
    27 ALLOBJS=$(ALLSRCS:.cpp=.o)
    28 
    29 LDLIBS_GEN=encdec/encdec.a store--/store--.a utils/utils.a 
    30 LDLIBS_API=api/libcertapp-api.a
    31 
    32 DEPENDFILES=$(ALLOBJS:.o=.d)
    33 
    34 
    35 all: $(TARGETS)
    36 	make -C test
    37 
    38 
    39 $(LDLIBS_GEN) $(LDLIBS_API): % : force
    40 	$(MAKE) -C $(dir $@) $(notdir $@)
    41 
    42 
    43 tags:
    44 	etags *.cpp *.h *.inl */*.cpp */*.h */*.inl */*/*.cpp */*/*.h
    45 	ls -l TAGS
    46 
    47 
    48 $(CERTAPP_TARGET) : $(CERTAPP_OBJS) $(LDLIBS_GEN)
    49 	$(LINK.C) $^ $(LOADLIBES) $(LDLIBS_GEN) -o $@ -lcrypto
    50 
    51 .PHONY: clean
    52 clean: cleanall
    53 
    54 .PHONY: cleanall
    55 cleanall:
    56 	-$(MAKE) -C utils clean
    57 	-$(MAKE) -C store-- clean
    58 	-$(MAKE) -C encdec clean
    59 	-rm -f $(TSTORE_OBJS) $(CERTAPP_OBJS) $(TARGETS) $(DEPENDFILES) core
    60 
    61 
    62 include $(wildcard $(DEPENDFILES))