update dev300-m58
[ooovba.git] / xmlsecurity / tools / demo / makefile.mk
blob9789bd93ee97fa01b4c0f56083da700b29c24202
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.14 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..$/..
34 PRJNAME=xmlsecurity
35 TARGET=demo
36 ENABLE_EXCEPTIONS=TRUE
37 NO_BSYMBOLIC=TRUE
38 LIBTARGET=NO
40 # --- Settings -----------------------------------------------------
42 .INCLUDE : settings.mk
43 .INCLUDE : $(PRJ)$/util$/target.pmk
45 CDEFS += -DXMLSEC_CRYPTO_NSS -DXMLSEC_NO_XSLT
47 # --- Files --------------------------------------------------------
49 SHARE_LIBS = \
50 $(CPPULIB) \
51 $(CPPUHELPERLIB) \
52 $(SALLIB) \
53 $(UCBHELPERLIB) \
54 $(UNOTOOLSLIB) \
55 $(TOOLSLIB) \
56 $(XMLOFFLIB) \
57 $(LIBXML2LIB) \
58 $(NSS3LIB) \
59 $(NSPR4LIB) \
60 $(XMLSECLIB) \
61 $(COMPHELPERLIB)
63 .IF "$(CRYPTO_ENGINE)" == "mscrypto"
64 SHARE_LIBS+= $(XMLSECLIB-MS)
65 .ELSE
66 SHARE_LIBS+= $(XMLSECLIB-NSS)
67 .ENDIF
71 # HACK: Use SLO for demo directly...
72 SHARE_OBJS = \
73 $(OBJ)$/util.obj \
74 $(OBJ)$/util2.obj \
75 $(SLO)$/biginteger.obj \
76 $(SLO)$/baseencoding.obj \
77 $(SLO)/xmlsignaturehelper.obj \
78 $(SLO)/xmlsignaturehelper2.obj \
79 $(SLO)/xsecctl.obj \
80 $(SLO)/xsecparser.obj \
81 $(SLO)/xsecsign.obj \
82 $(SLO)/xsecverify.obj
85 # ---------- signdemo ----------
87 APP1TARGET=signdemo
88 APP1DEPN=makefile.mk
89 APP1STDLIBS+=$(SHARE_LIBS)
90 APP1OBJS= $(SHARE_OBJS) $(OBJ)$/signdemo.obj
93 # ---------- verifydemo ----------
95 APP2TARGET=verifydemo
96 APP2DEPN=makefile.mk
97 APP2STDLIBS+=$(SHARE_LIBS)
98 APP2OBJS= $(SHARE_OBJS) $(OBJ)$/verifydemo.obj
101 # ---------- multisigdemo ----------
103 APP3TARGET=multisigdemo
104 APP3DEPN=makefile.mk
105 APP3STDLIBS+=$(SHARE_LIBS)
106 APP3OBJS= $(SHARE_OBJS) $(OBJ)$/multisigdemo.obj
109 # ---------- mozprofile ----------
111 APP4TARGET=mozprofile
112 APP4DEPN=makefile.mk
113 APP4STDLIBS+=$(SHARE_LIBS)
114 APP4OBJS= $(SHARE_OBJS) $(OBJ)$/mozprofile.obj
117 # ---------- performance ----------
119 APP5TARGET=performance
120 APP5DEPN=makefile.mk
121 APP5STDLIBS+=$(SHARE_LIBS)
122 APP5OBJS= $(OBJ)$/util.obj $(OBJ)$/performance.obj
125 # ---------- jflatfilter ----------
127 PACKAGE= com$/sun$/star$/xml$/security$/eval
128 JARFILES= sandbox.jar ridl.jar jurt.jar unoil.jar juh.jar
129 JAVAFILES:= $(shell @ls *.java)
130 JAVACLASSFILES= $(CLASSDIR)$/$(PACKAGE)$/JavaFlatFilter.class
131 JARCLASSDIRS= $(PACKAGE)
132 JARTARGET= jflatfilter.jar
133 JARCOMPRESS= TRUE
136 # --- Targets ------------------------------------------------------
138 .INCLUDE : target.mk
140 ALLTAR : $(BIN)$/demo.rdb
142 $(JAVACLASSFILES) : $(JAVAFILES)
144 REGISTERLIBS= \
145 dynamicloader.uno$(DLLPOST) \
146 namingservice.uno$(DLLPOST) \
147 bootstrap.uno$(DLLPOST) \
148 sax.uno$(DLLPOST) \
149 $(DLLPRE)mozab2$(DLLPOST)
151 $(BIN)$/demo.rdb: \
152 makefile.mk \
153 $(foreach,i,$(REGISTERLIBS) $(SOLARSHAREDBIN)$/$(i))
154 -rm -f $@ $(BIN)$/regcomp.rdb $(BIN)$/demo.tmp
155 $(REGCOMP) -register -r $(BIN)$/demo.tmp -c "$(strip $(REGISTERLIBS))"
156 $(REGCOMP) -register -r $(BIN)$/demo.tmp -c $(DLLPRE)xsec_fw$(DLLPOST)
157 $(REGCOMP) -register -r $(BIN)$/demo.tmp -c $(DLLPRE)xsec_xmlsec$(DLLPOST)
158 $(REGMERGE) $(BIN)$/demo.tmp / $(SOLARBINDIR)/types.rdb
159 mv $(BIN)$/demo.tmp $@