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#*************************************************************************
27PRJ=..$/..
28PRJNAME=extensions
29TARGET=scn
30ENABLE_EXCEPTIONS=TRUE
31PACKAGE=com$/sun$/star$/scanner
32USE_DEFFILE=TRUE
33
34# --- Settings -----------------------------------------------------
35
36.INCLUDE :	$(PRJ)$/util$/makefile.pmk
37
38# --- Files --------------------------------------------------------
39
40SLOFILES=\
41				$(SLO)$/scnserv.obj		\
42				$(SLO)$/scanner.obj
43
44.IF "$(GUI)"=="WNT"
45SLOFILES+=\
46				$(SLO)$/scanwin.obj
47.ENDIF
48
49.IF "$(GUI)"=="UNX" || "$(GUI)" =="OS2"
50SLOFILES+=\
51				$(SLO)$/sane.obj		\
52				$(SLO)$/sanedlg.obj		\
53				$(SLO)$/scanunx.obj		\
54				$(SLO)$/grid.obj
55
56.ENDIF
57
58SRS1NAME=$(TARGET)
59SRC1FILES=\
60	sanedlg.src		\
61	grid.src
62
63RESLIB1NAME=san
64RESLIB1IMAGES=$(PRJ)$/source$/scanner
65RESLIB1SRSFILES= $(SRS)$/scn.srs
66RESLIB1DEPN= sanedlg.src sanedlg.hrc grid.src grid.hrc
67
68SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
69SHL1STDLIBS=\
70	$(CPPULIB)			\
71	$(CPPUHELPERLIB)	\
72	$(COMPHELPERLIB)	\
73	$(VOSLIB)			\
74	$(SALLIB)			\
75	$(ONELIB)			\
76	$(TOOLSLIB)			\
77	$(VCLLIB)			\
78	$(SVTOOLLIB)
79
80.IF "$(GUI)"=="UNX"
81.IF "$(OS)"!="FREEBSD"
82.IF "$(OS)"!="NETBSD"
83SHL1STDLIBS+=$(SVTOOLLIB) -ldl
84.ENDIF
85.ENDIF
86.ENDIF
87
88SHL1DEF=$(MISC)$/$(SHL1TARGET).def
89SHL1IMPLIB=i$(TARGET)
90SHL1LIBS=$(SLB)$/$(TARGET).lib
91SHL1VERSIONMAP=$(SOLARENV)/src/component.map
92
93DEF1NAME=$(SHL1TARGET)
94DEF1EXPORTFILE=exports.dxp
95
96
97# --- Targets ------------------------------------------------------
98
99.INCLUDE :  target.mk
100
101
102ALLTAR : $(MISC)/scn.component
103
104$(MISC)/scn.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
105        scn.component
106    $(XSLTPROC) --nonet --stringparam uri \
107        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
108        $(SOLARENV)/bin/createcomponent.xslt scn.component
109