xref: /aoo42x/main/xmlsecurity/tools/demo/makefile.mk (revision ffd43a0a)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..$/..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=xmlsecurity
27cdf0e10cSrcweirTARGET=demo
28cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
29cdf0e10cSrcweirNO_BSYMBOLIC=TRUE
30cdf0e10cSrcweirLIBTARGET=NO
31cdf0e10cSrcweir
32cdf0e10cSrcweir# --- Settings -----------------------------------------------------
33cdf0e10cSrcweir
34cdf0e10cSrcweir.INCLUDE :  settings.mk
35cdf0e10cSrcweir.INCLUDE :	$(PRJ)$/util$/target.pmk
36cdf0e10cSrcweir
37cdf0e10cSrcweirCDEFS += -DXMLSEC_CRYPTO_NSS -DXMLSEC_NO_XSLT
38cdf0e10cSrcweir
39cdf0e10cSrcweir# --- Files --------------------------------------------------------
40cdf0e10cSrcweir
41cdf0e10cSrcweirSHARE_LIBS =			\
42cdf0e10cSrcweir	$(CPPULIB)			\
43cdf0e10cSrcweir	$(CPPUHELPERLIB)	\
44cdf0e10cSrcweir	$(SALLIB)			\
45cdf0e10cSrcweir	$(UCBHELPERLIB)		\
46cdf0e10cSrcweir	$(UNOTOOLSLIB)		\
47cdf0e10cSrcweir	$(TOOLSLIB)			\
48cdf0e10cSrcweir	$(XMLOFFLIB)		\
49cdf0e10cSrcweir	$(LIBXML2LIB)		\
50cdf0e10cSrcweir	$(NSS3LIB)			\
51cdf0e10cSrcweir	$(NSPR4LIB)			\
52cdf0e10cSrcweir	$(XMLSECLIB)		\
53cdf0e10cSrcweir	$(COMPHELPERLIB)
54cdf0e10cSrcweir
55cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "mscrypto"
56cdf0e10cSrcweirSHARE_LIBS+= $(XMLSECLIB-MS)
57cdf0e10cSrcweir.ELSE
58cdf0e10cSrcweirSHARE_LIBS+= $(XMLSECLIB-NSS)
59cdf0e10cSrcweir.ENDIF
60cdf0e10cSrcweir
61cdf0e10cSrcweir
62cdf0e10cSrcweir
63cdf0e10cSrcweir# HACK: Use SLO for demo directly...
64cdf0e10cSrcweirSHARE_OBJS =	\
65cdf0e10cSrcweir	$(OBJ)$/util.obj \
66cdf0e10cSrcweir	$(OBJ)$/util2.obj \
67cdf0e10cSrcweir	$(SLO)$/biginteger.obj \
68cdf0e10cSrcweir	$(SLO)$/baseencoding.obj \
69cdf0e10cSrcweir	$(SLO)/xmlsignaturehelper.obj	\
70cdf0e10cSrcweir	$(SLO)/xmlsignaturehelper2.obj	\
71cdf0e10cSrcweir	$(SLO)/xsecctl.obj	\
72cdf0e10cSrcweir	$(SLO)/xsecparser.obj	\
73cdf0e10cSrcweir	$(SLO)/xsecsign.obj	\
74cdf0e10cSrcweir	$(SLO)/xsecverify.obj
75cdf0e10cSrcweir
76cdf0e10cSrcweir#
77cdf0e10cSrcweir# ---------- signdemo ----------
78cdf0e10cSrcweir#
79cdf0e10cSrcweirAPP1TARGET=signdemo
80cdf0e10cSrcweirAPP1DEPN=makefile.mk
81cdf0e10cSrcweirAPP1STDLIBS+=$(SHARE_LIBS)
82cdf0e10cSrcweirAPP1OBJS= $(SHARE_OBJS)	$(OBJ)$/signdemo.obj
83cdf0e10cSrcweir
84cdf0e10cSrcweir#
85cdf0e10cSrcweir# ---------- verifydemo ----------
86cdf0e10cSrcweir#
87cdf0e10cSrcweirAPP2TARGET=verifydemo
88cdf0e10cSrcweirAPP2DEPN=makefile.mk
89cdf0e10cSrcweirAPP2STDLIBS+=$(SHARE_LIBS)
90cdf0e10cSrcweirAPP2OBJS= $(SHARE_OBJS)	$(OBJ)$/verifydemo.obj
91cdf0e10cSrcweir
92cdf0e10cSrcweir#
93cdf0e10cSrcweir# ---------- multisigdemo ----------
94cdf0e10cSrcweir#
95cdf0e10cSrcweirAPP3TARGET=multisigdemo
96cdf0e10cSrcweirAPP3DEPN=makefile.mk
97cdf0e10cSrcweirAPP3STDLIBS+=$(SHARE_LIBS)
98cdf0e10cSrcweirAPP3OBJS= $(SHARE_OBJS)	$(OBJ)$/multisigdemo.obj
99cdf0e10cSrcweir
100cdf0e10cSrcweir#
101cdf0e10cSrcweir# ---------- mozprofile ----------
102cdf0e10cSrcweir#
103cdf0e10cSrcweirAPP4TARGET=mozprofile
104cdf0e10cSrcweirAPP4DEPN=makefile.mk
105cdf0e10cSrcweirAPP4STDLIBS+=$(SHARE_LIBS)
106cdf0e10cSrcweirAPP4OBJS= $(SHARE_OBJS)	$(OBJ)$/mozprofile.obj
107cdf0e10cSrcweir
108cdf0e10cSrcweir#
109cdf0e10cSrcweir# ---------- performance ----------
110cdf0e10cSrcweir#
111cdf0e10cSrcweirAPP5TARGET=performance
112cdf0e10cSrcweirAPP5DEPN=makefile.mk
113cdf0e10cSrcweirAPP5STDLIBS+=$(SHARE_LIBS)
114cdf0e10cSrcweirAPP5OBJS= $(OBJ)$/util.obj	$(OBJ)$/performance.obj
115cdf0e10cSrcweir
116cdf0e10cSrcweir#
117cdf0e10cSrcweir# ---------- jflatfilter ----------
118cdf0e10cSrcweir#
119cdf0e10cSrcweirPACKAGE=	    com$/sun$/star$/xml$/security$/eval
120cdf0e10cSrcweirJARFILES=       ridl.jar jurt.jar unoil.jar juh.jar
121cdf0e10cSrcweirJAVAFILES:=     $(shell @ls *.java)
122cdf0e10cSrcweirJAVACLASSFILES= $(CLASSDIR)$/$(PACKAGE)$/JavaFlatFilter.class
123cdf0e10cSrcweirJARCLASSDIRS=   $(PACKAGE)
124cdf0e10cSrcweirJARTARGET=      jflatfilter.jar
125cdf0e10cSrcweirJARCOMPRESS=    TRUE
126cdf0e10cSrcweir
127cdf0e10cSrcweir
128cdf0e10cSrcweir# --- Targets ------------------------------------------------------
129cdf0e10cSrcweir
130cdf0e10cSrcweir.INCLUDE :  target.mk
131cdf0e10cSrcweir
132cdf0e10cSrcweirALLTAR : $(BIN)$/demo.rdb
133cdf0e10cSrcweir
134cdf0e10cSrcweir$(JAVACLASSFILES) : $(JAVAFILES)
135cdf0e10cSrcweir
136cdf0e10cSrcweirREGISTERLIBS=					\
137cdf0e10cSrcweir	dynamicloader.uno$(DLLPOST) \
138cdf0e10cSrcweir	namingservice.uno$(DLLPOST) \
139cdf0e10cSrcweir	bootstrap.uno$(DLLPOST)	\
140*ffd43a0aSHerbert Dürr	sax.uno$(DLLPOST)
141cdf0e10cSrcweir
142cdf0e10cSrcweir$(BIN)$/demo.rdb: \
143cdf0e10cSrcweir		makefile.mk \
144cdf0e10cSrcweir	$(foreach,i,$(REGISTERLIBS) $(SOLARSHAREDBIN)$/$(i))
145cdf0e10cSrcweir	-rm -f $@ $(BIN)$/regcomp.rdb $(BIN)$/demo.tmp
146cdf0e10cSrcweir	$(REGCOMP) -register -r $(BIN)$/demo.tmp -c "$(strip $(REGISTERLIBS))"
147cdf0e10cSrcweir	$(REGCOMP) -register -r $(BIN)$/demo.tmp -c $(DLLPRE)xsec_fw$(DLLPOST)
148cdf0e10cSrcweir	$(REGCOMP) -register -r $(BIN)$/demo.tmp -c $(DLLPRE)xsec_xmlsec$(DLLPOST)
149cdf0e10cSrcweir	$(REGMERGE) $(BIN)$/demo.tmp / $(SOLARBINDIR)/types.rdb
150cdf0e10cSrcweir	mv $(BIN)$/demo.tmp $@
151cdf0e10cSrcweir
152cdf0e10cSrcweir
153