securityanddataprivacytools/securitytools/certapp/GNUmakefile
changeset 0 2c201484c85f
child 6 50f2ff6984be
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     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 "Symbian Foundation License v1.0"
       
     5 # which accompanies this distribution, and is available
       
     6 # at the URL "http://www.symbianfoundation.org/legal/sfl-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))