merged tag ooo/OOO330_m14
[LibreOffice.git] / xmlsecurity / tools / demo / makefile.mk
blob5dba00d23f4051bc8a096ea9d8d3e09456c1607c
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
28 PRJ=..$/..
30 PRJNAME=xmlsecurity
31 TARGET=demo
32 ENABLE_EXCEPTIONS=TRUE
33 NO_BSYMBOLIC=TRUE
34 LIBTARGET=NO
36 # --- Settings -----------------------------------------------------
38 .INCLUDE : settings.mk
39 .INCLUDE : $(PRJ)$/util$/target.pmk
41 CDEFS += -DXMLSEC_CRYPTO_NSS -DXMLSEC_NO_XSLT
43 # --- Files --------------------------------------------------------
45 SHARE_LIBS = \
46 $(CPPULIB) \
47 $(CPPUHELPERLIB) \
48 $(SALLIB) \
49 $(UCBHELPERLIB) \
50 $(UNOTOOLSLIB) \
51 $(TOOLSLIB) \
52 $(XMLOFFLIB) \
53 $(LIBXML2LIB) \
54 $(NSS3LIB) \
55 $(NSPR4LIB) \
56 $(XMLSECLIB) \
57 $(COMPHELPERLIB)
59 .IF "$(CRYPTO_ENGINE)" == "mscrypto"
60 SHARE_LIBS+= $(XMLSECLIB-MS)
61 .ELSE
62 SHARE_LIBS+= $(XMLSECLIB-NSS)
63 .ENDIF
67 # HACK: Use SLO for demo directly...
68 SHARE_OBJS = \
69 $(OBJ)$/util.obj \
70 $(OBJ)$/util2.obj \
71 $(SLO)$/biginteger.obj \
72 $(SLO)$/baseencoding.obj \
73 $(SLO)/xmlsignaturehelper.obj \
74 $(SLO)/xmlsignaturehelper2.obj \
75 $(SLO)/xsecctl.obj \
76 $(SLO)/xsecparser.obj \
77 $(SLO)/xsecsign.obj \
78 $(SLO)/xsecverify.obj
81 # ---------- signdemo ----------
83 APP1TARGET=signdemo
84 APP1DEPN=makefile.mk
85 APP1STDLIBS+=$(SHARE_LIBS)
86 APP1OBJS= $(SHARE_OBJS) $(OBJ)$/signdemo.obj
89 # ---------- verifydemo ----------
91 APP2TARGET=verifydemo
92 APP2DEPN=makefile.mk
93 APP2STDLIBS+=$(SHARE_LIBS)
94 APP2OBJS= $(SHARE_OBJS) $(OBJ)$/verifydemo.obj
97 # ---------- multisigdemo ----------
99 APP3TARGET=multisigdemo
100 APP3DEPN=makefile.mk
101 APP3STDLIBS+=$(SHARE_LIBS)
102 APP3OBJS= $(SHARE_OBJS) $(OBJ)$/multisigdemo.obj
105 # ---------- mozprofile ----------
107 APP4TARGET=mozprofile
108 APP4DEPN=makefile.mk
109 APP4STDLIBS+=$(SHARE_LIBS)
110 APP4OBJS= $(SHARE_OBJS) $(OBJ)$/mozprofile.obj
113 # ---------- performance ----------
115 APP5TARGET=performance
116 APP5DEPN=makefile.mk
117 APP5STDLIBS+=$(SHARE_LIBS)
118 APP5OBJS= $(OBJ)$/util.obj $(OBJ)$/performance.obj
121 # ---------- jflatfilter ----------
123 PACKAGE= com$/sun$/star$/xml$/security$/eval
124 JARFILES= ridl.jar jurt.jar unoil.jar juh.jar
125 JAVAFILES:= $(shell @ls *.java)
126 JAVACLASSFILES= $(CLASSDIR)$/$(PACKAGE)$/JavaFlatFilter.class
127 JARCLASSDIRS= $(PACKAGE)
128 JARTARGET= jflatfilter.jar
129 JARCOMPRESS= TRUE
132 # --- Targets ------------------------------------------------------
134 .INCLUDE : target.mk
136 ALLTAR : $(BIN)$/demo.rdb
138 $(JAVACLASSFILES) : $(JAVAFILES)
140 REGISTERLIBS= \
141 dynamicloader.uno$(DLLPOST) \
142 namingservice.uno$(DLLPOST) \
143 bootstrap.uno$(DLLPOST) \
144 sax.uno$(DLLPOST) \
145 $(DLLPRE)mozab2$(DLLPOST)
147 $(BIN)$/demo.rdb: \
148 makefile.mk \
149 $(foreach,i,$(REGISTERLIBS) $(SOLARSHAREDBIN)$/$(i))
150 -rm -f $@ $(BIN)$/regcomp.rdb $(BIN)$/demo.tmp
151 $(REGCOMP) -register -r $(BIN)$/demo.tmp -c "$(strip $(REGISTERLIBS))"
152 $(REGCOMP) -register -r $(BIN)$/demo.tmp -c $(DLLPRE)xsec_fw$(DLLPOST)
153 $(REGCOMP) -register -r $(BIN)$/demo.tmp -c $(DLLPRE)xsec_xmlsec$(DLLPOST)
154 $(REGMERGE) $(BIN)$/demo.tmp / $(SOLARBINDIR)/types.rdb
155 mv $(BIN)$/demo.tmp $@