1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #*************************************************************************
32 ENABLE_EXCEPTIONS
=TRUE
36 # --- Settings -----------------------------------------------------
38 .INCLUDE
: settings.mk
39 .INCLUDE
: $(PRJ
)$/util
$/target.pmk
41 CDEFS
+= -DXMLSEC_CRYPTO_NSS
-DXMLSEC_NO_XSLT
43 # --- Files --------------------------------------------------------
59 .IF
"$(CRYPTO_ENGINE)" == "mscrypto"
60 SHARE_LIBS
+= $(XMLSECLIB-MS
)
62 SHARE_LIBS
+= $(XMLSECLIB-NSS
)
67 # HACK: Use SLO for demo directly...
71 $(SLO
)$/biginteger.obj \
72 $(SLO
)$/baseencoding.obj \
73 $(SLO
)/xmlsignaturehelper.obj \
74 $(SLO
)/xmlsignaturehelper2.obj \
76 $(SLO
)/xsecparser.obj \
81 # ---------- signdemo ----------
85 APP1STDLIBS
+=$(SHARE_LIBS
)
86 APP1OBJS
= $(SHARE_OBJS
) $(OBJ
)$/signdemo.obj
89 # ---------- verifydemo ----------
93 APP2STDLIBS
+=$(SHARE_LIBS
)
94 APP2OBJS
= $(SHARE_OBJS
) $(OBJ
)$/verifydemo.obj
97 # ---------- multisigdemo ----------
99 APP3TARGET
=multisigdemo
101 APP3STDLIBS
+=$(SHARE_LIBS
)
102 APP3OBJS
= $(SHARE_OBJS
) $(OBJ
)$/multisigdemo.obj
105 # ---------- mozprofile ----------
107 APP4TARGET
=mozprofile
109 APP4STDLIBS
+=$(SHARE_LIBS
)
110 APP4OBJS
= $(SHARE_OBJS
) $(OBJ
)$/mozprofile.obj
113 # ---------- performance ----------
115 APP5TARGET
=performance
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
132 # --- Targets ------------------------------------------------------
136 ALLTAR
: $(BIN
)$/demo.rdb
138 $(JAVACLASSFILES
) : $(JAVAFILES
)
141 dynamicloader.uno
$(DLLPOST
) \
142 namingservice.uno
$(DLLPOST
) \
143 bootstrap.uno
$(DLLPOST
) \
145 $(DLLPRE
)mozab2
$(DLLPOST
)
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
$@