1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23PRJ=..$/..
24PRJNAME=extensions
25TARGET=scn
26ENABLE_EXCEPTIONS=TRUE
27PACKAGE=com$/sun$/star$/scanner
28USE_DEFFILE=TRUE
29
30# --- Settings -----------------------------------------------------
31
32.INCLUDE :	$(PRJ)$/util$/makefile.pmk
33
34# --- Files --------------------------------------------------------
35
36SLOFILES=\
37				$(SLO)$/scnserv.obj		\
38				$(SLO)$/scanner.obj
39
40.IF "$(GUI)"=="WNT"
41SLOFILES+=\
42				$(SLO)$/scanwin.obj
43.ENDIF
44
45.IF "$(GUI)"=="UNX" || "$(GUI)" =="OS2"
46SLOFILES+=\
47				$(SLO)$/sane.obj		\
48				$(SLO)$/sanedlg.obj		\
49				$(SLO)$/scanunx.obj		\
50				$(SLO)$/grid.obj
51
52.ENDIF
53
54SRS1NAME=$(TARGET)
55SRC1FILES=\
56	sanedlg.src		\
57	grid.src
58
59RESLIB1NAME=san
60RESLIB1IMAGES=$(PRJ)$/source$/scanner
61RESLIB1SRSFILES= $(SRS)$/scn.srs
62RESLIB1DEPN= sanedlg.src sanedlg.hrc grid.src grid.hrc
63
64SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
65SHL1STDLIBS=\
66	$(CPPULIB)			\
67	$(CPPUHELPERLIB)	\
68	$(COMPHELPERLIB)	\
69	$(VOSLIB)			\
70	$(SALLIB)			\
71	$(ONELIB)			\
72	$(TOOLSLIB)			\
73	$(VCLLIB)			\
74	$(SVTOOLLIB)
75
76.IF "$(GUI)"=="UNX"
77.IF "$(OS)"!="FREEBSD"
78.IF "$(OS)"!="NETBSD"
79SHL1STDLIBS+=$(SVTOOLLIB) -ldl
80.ENDIF
81.ENDIF
82.ENDIF
83
84SHL1DEF=$(MISC)$/$(SHL1TARGET).def
85SHL1IMPLIB=i$(TARGET)
86SHL1LIBS=$(SLB)$/$(TARGET).lib
87SHL1VERSIONMAP=$(SOLARENV)/src/component.map
88
89DEF1NAME=$(SHL1TARGET)
90DEF1EXPORTFILE=exports.dxp
91
92
93# --- Targets ------------------------------------------------------
94
95.INCLUDE :  target.mk
96
97
98ALLTAR : $(MISC)/scn.component
99
100$(MISC)/scn.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
101        scn.component
102    $(XSLTPROC) --nonet --stringparam uri \
103        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
104        $(SOLARENV)/bin/createcomponent.xslt scn.component
105