1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
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.
14#
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).
20#
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.
25#
26#*************************************************************************
27
28PRJ     = ../../../../..
29PRJNAME = smoketestdoc
30PACKAGE = com/sun/star/comp/smoketest
31TARGET  = com_sun_star_comp_smoketest
32
33no_common_build_zip:=TRUE
34
35# --- Settings -----------------------------------------------------
36
37.IF "$(SOLAR_JAVA)" != ""
38
39.INCLUDE : settings.mk
40
41JARFILES = ridl.jar jurt.jar unoil.jar juh.jar
42
43JARTARGET          = TestExtension.jar
44JARCOMPRESS        = TRUE
45CUSTOMMANIFESTFILE = MANIFEST.MF
46
47ZIP1TARGET=TestExtension
48ZIP1LIST=*
49ZIPFLAGS=-r
50ZIP1DIR=$(MISC)/$(TARGET)
51ZIP1EXT=.oxt
52
53# --- Files --------------------------------------------------------
54
55#COPY_OXT_MANIFEST:= $(MISC)/$(TARGET)/META-INF/manifest.xml
56JAVAFILES = TestExtension.java
57
58# --- Targets ------------------------------------------------------
59
60ZIP1DEPS=$(MISC)/$(TARGET)/$(JARTARGET)\
61         $(MISC)/$(TARGET)/TestExtension.rdb\
62         $(MISC)/$(TARGET)/META-INF/manifest.xml
63
64.INCLUDE :  target.mk
65
66$(MISC)/$(TARGET)/META-INF:
67	@-$(MKDIRHIER) $(@)
68
69$(MISC)/TestExtension.urd: TestExtension.idl
70	$(COMMAND_ECHO)$(IDLC) -O$(MISC) -I$(SOLARIDLDIR) -cid -we $<
71
72$(MISC)/$(TARGET)/META-INF/manifest.xml $(MISC)/$(TARGET)/TestExtension.rdb : $(MISC)/$(TARGET)/META-INF
73
74$(MISC)/$(TARGET)/META-INF/manifest.xml: manifest.xml
75	$(COMMAND_ECHO)$(COPY) $< $@
76
77$(MISC)/$(TARGET)/TestExtension.rdb: $(MISC)/TestExtension.urd
78	$(COMMAND_ECHO)$(REGMERGE) $@ /UCR $<
79
80$(JAVACLASSFILES) .UPDATEALL: $(MISC)/$(TARGET)/TestExtension.rdb
81	$(COMMAND_ECHO)$(JAVAMAKER) -O$(CLASSDIR) -BUCR -nD -X$(SOLARBINDIR)/types.rdb $<
82
83$(MISC)/$(TARGET)/$(JARTARGET) : $(JARTARGETN)
84	$(COMMAND_ECHO)$(COPY) $< $@
85
86.ELSE
87@all:
88	@echo "Java disabled. Nothing to do."
89.ENDIF
90