xref: /aoo42x/main/xmlsecurity/tools/demo/makefile.mk (revision cdf0e10c)
1*cdf0e10cSrcweir#*************************************************************************
2*cdf0e10cSrcweir#
3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir#
5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir#
7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir#
9*cdf0e10cSrcweir# This file is part of OpenOffice.org.
10*cdf0e10cSrcweir#
11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir#
15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir#
21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir#
26*cdf0e10cSrcweir#*************************************************************************
27*cdf0e10cSrcweir
28*cdf0e10cSrcweirPRJ=..$/..
29*cdf0e10cSrcweir
30*cdf0e10cSrcweirPRJNAME=xmlsecurity
31*cdf0e10cSrcweirTARGET=demo
32*cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
33*cdf0e10cSrcweirNO_BSYMBOLIC=TRUE
34*cdf0e10cSrcweirLIBTARGET=NO
35*cdf0e10cSrcweir
36*cdf0e10cSrcweir# --- Settings -----------------------------------------------------
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir.INCLUDE :  settings.mk
39*cdf0e10cSrcweir.INCLUDE :	$(PRJ)$/util$/target.pmk
40*cdf0e10cSrcweir
41*cdf0e10cSrcweirCDEFS += -DXMLSEC_CRYPTO_NSS -DXMLSEC_NO_XSLT
42*cdf0e10cSrcweir
43*cdf0e10cSrcweir# --- Files --------------------------------------------------------
44*cdf0e10cSrcweir
45*cdf0e10cSrcweirSHARE_LIBS =			\
46*cdf0e10cSrcweir	$(CPPULIB)			\
47*cdf0e10cSrcweir	$(CPPUHELPERLIB)	\
48*cdf0e10cSrcweir	$(SALLIB)			\
49*cdf0e10cSrcweir	$(UCBHELPERLIB)		\
50*cdf0e10cSrcweir	$(UNOTOOLSLIB)		\
51*cdf0e10cSrcweir	$(TOOLSLIB)			\
52*cdf0e10cSrcweir	$(XMLOFFLIB)		\
53*cdf0e10cSrcweir	$(LIBXML2LIB)		\
54*cdf0e10cSrcweir	$(NSS3LIB)			\
55*cdf0e10cSrcweir	$(NSPR4LIB)			\
56*cdf0e10cSrcweir	$(XMLSECLIB)		\
57*cdf0e10cSrcweir	$(COMPHELPERLIB)
58*cdf0e10cSrcweir
59*cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "mscrypto"
60*cdf0e10cSrcweirSHARE_LIBS+= $(XMLSECLIB-MS)
61*cdf0e10cSrcweir.ELSE
62*cdf0e10cSrcweirSHARE_LIBS+= $(XMLSECLIB-NSS)
63*cdf0e10cSrcweir.ENDIF
64*cdf0e10cSrcweir
65*cdf0e10cSrcweir
66*cdf0e10cSrcweir
67*cdf0e10cSrcweir# HACK: Use SLO for demo directly...
68*cdf0e10cSrcweirSHARE_OBJS =	\
69*cdf0e10cSrcweir	$(OBJ)$/util.obj \
70*cdf0e10cSrcweir	$(OBJ)$/util2.obj \
71*cdf0e10cSrcweir	$(SLO)$/biginteger.obj \
72*cdf0e10cSrcweir	$(SLO)$/baseencoding.obj \
73*cdf0e10cSrcweir	$(SLO)/xmlsignaturehelper.obj	\
74*cdf0e10cSrcweir	$(SLO)/xmlsignaturehelper2.obj	\
75*cdf0e10cSrcweir	$(SLO)/xsecctl.obj	\
76*cdf0e10cSrcweir	$(SLO)/xsecparser.obj	\
77*cdf0e10cSrcweir	$(SLO)/xsecsign.obj	\
78*cdf0e10cSrcweir	$(SLO)/xsecverify.obj
79*cdf0e10cSrcweir
80*cdf0e10cSrcweir#
81*cdf0e10cSrcweir# ---------- signdemo ----------
82*cdf0e10cSrcweir#
83*cdf0e10cSrcweirAPP1TARGET=signdemo
84*cdf0e10cSrcweirAPP1DEPN=makefile.mk
85*cdf0e10cSrcweirAPP1STDLIBS+=$(SHARE_LIBS)
86*cdf0e10cSrcweirAPP1OBJS= $(SHARE_OBJS)	$(OBJ)$/signdemo.obj
87*cdf0e10cSrcweir
88*cdf0e10cSrcweir#
89*cdf0e10cSrcweir# ---------- verifydemo ----------
90*cdf0e10cSrcweir#
91*cdf0e10cSrcweirAPP2TARGET=verifydemo
92*cdf0e10cSrcweirAPP2DEPN=makefile.mk
93*cdf0e10cSrcweirAPP2STDLIBS+=$(SHARE_LIBS)
94*cdf0e10cSrcweirAPP2OBJS= $(SHARE_OBJS)	$(OBJ)$/verifydemo.obj
95*cdf0e10cSrcweir
96*cdf0e10cSrcweir#
97*cdf0e10cSrcweir# ---------- multisigdemo ----------
98*cdf0e10cSrcweir#
99*cdf0e10cSrcweirAPP3TARGET=multisigdemo
100*cdf0e10cSrcweirAPP3DEPN=makefile.mk
101*cdf0e10cSrcweirAPP3STDLIBS+=$(SHARE_LIBS)
102*cdf0e10cSrcweirAPP3OBJS= $(SHARE_OBJS)	$(OBJ)$/multisigdemo.obj
103*cdf0e10cSrcweir
104*cdf0e10cSrcweir#
105*cdf0e10cSrcweir# ---------- mozprofile ----------
106*cdf0e10cSrcweir#
107*cdf0e10cSrcweirAPP4TARGET=mozprofile
108*cdf0e10cSrcweirAPP4DEPN=makefile.mk
109*cdf0e10cSrcweirAPP4STDLIBS+=$(SHARE_LIBS)
110*cdf0e10cSrcweirAPP4OBJS= $(SHARE_OBJS)	$(OBJ)$/mozprofile.obj
111*cdf0e10cSrcweir
112*cdf0e10cSrcweir#
113*cdf0e10cSrcweir# ---------- performance ----------
114*cdf0e10cSrcweir#
115*cdf0e10cSrcweirAPP5TARGET=performance
116*cdf0e10cSrcweirAPP5DEPN=makefile.mk
117*cdf0e10cSrcweirAPP5STDLIBS+=$(SHARE_LIBS)
118*cdf0e10cSrcweirAPP5OBJS= $(OBJ)$/util.obj	$(OBJ)$/performance.obj
119*cdf0e10cSrcweir
120*cdf0e10cSrcweir#
121*cdf0e10cSrcweir# ---------- jflatfilter ----------
122*cdf0e10cSrcweir#
123*cdf0e10cSrcweirPACKAGE=	    com$/sun$/star$/xml$/security$/eval
124*cdf0e10cSrcweirJARFILES=       ridl.jar jurt.jar unoil.jar juh.jar
125*cdf0e10cSrcweirJAVAFILES:=     $(shell @ls *.java)
126*cdf0e10cSrcweirJAVACLASSFILES= $(CLASSDIR)$/$(PACKAGE)$/JavaFlatFilter.class
127*cdf0e10cSrcweirJARCLASSDIRS=   $(PACKAGE)
128*cdf0e10cSrcweirJARTARGET=      jflatfilter.jar
129*cdf0e10cSrcweirJARCOMPRESS=    TRUE
130*cdf0e10cSrcweir
131*cdf0e10cSrcweir
132*cdf0e10cSrcweir# --- Targets ------------------------------------------------------
133*cdf0e10cSrcweir
134*cdf0e10cSrcweir.INCLUDE :  target.mk
135*cdf0e10cSrcweir
136*cdf0e10cSrcweirALLTAR : $(BIN)$/demo.rdb
137*cdf0e10cSrcweir
138*cdf0e10cSrcweir$(JAVACLASSFILES) : $(JAVAFILES)
139*cdf0e10cSrcweir
140*cdf0e10cSrcweirREGISTERLIBS=					\
141*cdf0e10cSrcweir	dynamicloader.uno$(DLLPOST) \
142*cdf0e10cSrcweir	namingservice.uno$(DLLPOST) \
143*cdf0e10cSrcweir	bootstrap.uno$(DLLPOST)	\
144*cdf0e10cSrcweir	sax.uno$(DLLPOST)			\
145*cdf0e10cSrcweir	$(DLLPRE)mozab2$(DLLPOST)
146*cdf0e10cSrcweir
147*cdf0e10cSrcweir$(BIN)$/demo.rdb: \
148*cdf0e10cSrcweir		makefile.mk \
149*cdf0e10cSrcweir	$(foreach,i,$(REGISTERLIBS) $(SOLARSHAREDBIN)$/$(i))
150*cdf0e10cSrcweir	-rm -f $@ $(BIN)$/regcomp.rdb $(BIN)$/demo.tmp
151*cdf0e10cSrcweir	$(REGCOMP) -register -r $(BIN)$/demo.tmp -c "$(strip $(REGISTERLIBS))"
152*cdf0e10cSrcweir	$(REGCOMP) -register -r $(BIN)$/demo.tmp -c $(DLLPRE)xsec_fw$(DLLPOST)
153*cdf0e10cSrcweir	$(REGCOMP) -register -r $(BIN)$/demo.tmp -c $(DLLPRE)xsec_xmlsec$(DLLPOST)
154*cdf0e10cSrcweir	$(REGMERGE) $(BIN)$/demo.tmp / $(SOLARBINDIR)/types.rdb
155*cdf0e10cSrcweir	mv $(BIN)$/demo.tmp $@
156*cdf0e10cSrcweir
157*cdf0e10cSrcweir
158