1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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 #*************************************************************************
36 ENABLE_EXCEPTIONS
=TRUE
40 # --- Settings -----------------------------------------------------
42 .INCLUDE
: settings.mk
43 .INCLUDE
: $(PRJ
)$/util
$/target.pmk
45 CDEFS
+= -DXMLSEC_CRYPTO_NSS
-DXMLSEC_NO_XSLT
47 # --- Files --------------------------------------------------------
63 .IF
"$(CRYPTO_ENGINE)" == "mscrypto"
64 SHARE_LIBS
+= $(XMLSECLIB-MS
)
66 SHARE_LIBS
+= $(XMLSECLIB-NSS
)
71 # HACK: Use SLO for demo directly...
75 $(SLO
)$/biginteger.obj \
76 $(SLO
)$/baseencoding.obj \
77 $(SLO
)/xmlsignaturehelper.obj \
78 $(SLO
)/xmlsignaturehelper2.obj \
80 $(SLO
)/xsecparser.obj \
85 # ---------- signdemo ----------
89 APP1STDLIBS
+=$(SHARE_LIBS
)
90 APP1OBJS
= $(SHARE_OBJS
) $(OBJ
)$/signdemo.obj
93 # ---------- verifydemo ----------
97 APP2STDLIBS
+=$(SHARE_LIBS
)
98 APP2OBJS
= $(SHARE_OBJS
) $(OBJ
)$/verifydemo.obj
101 # ---------- multisigdemo ----------
103 APP3TARGET
=multisigdemo
105 APP3STDLIBS
+=$(SHARE_LIBS
)
106 APP3OBJS
= $(SHARE_OBJS
) $(OBJ
)$/multisigdemo.obj
109 # ---------- mozprofile ----------
111 APP4TARGET
=mozprofile
113 APP4STDLIBS
+=$(SHARE_LIBS
)
114 APP4OBJS
= $(SHARE_OBJS
) $(OBJ
)$/mozprofile.obj
117 # ---------- performance ----------
119 APP5TARGET
=performance
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
136 # --- Targets ------------------------------------------------------
140 ALLTAR
: $(BIN
)$/demo.rdb
142 $(JAVACLASSFILES
) : $(JAVAFILES
)
145 dynamicloader.uno
$(DLLPOST
) \
146 namingservice.uno
$(DLLPOST
) \
147 bootstrap.uno
$(DLLPOST
) \
149 $(DLLPRE
)mozab2
$(DLLPOST
)
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
$@