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#**************************************************************
21PRJ=..$/..
22PRJNAME=writerfilter
23TARGET=rtftok
24#LIBTARGET=NO
25ENABLE_EXCEPTIONS=TRUE
26#USE_DEFFILE=TRUE
27EXTERNAL_WARNINGS_NOT_ERRORS=TRUE
28
29# --- Settings -----------------------------------------------------
30
31.INCLUDE :  settings.mk
32.INCLUDE :  $(PRJ)$/inc$/writerfilter.mk
33
34#CFLAGS+=-DISOLATION_AWARE_ENABLED -DWIN32_LEAN_AND_MEAN -DXML_UNICODE -D_NTSDK -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0501
35#CFLAGS+=-wd4710 -wd4711 -wd4514 -wd4619 -wd4217 -wd4820
36
37
38# --- Files --------------------------------------------------------
39
40SLOFILES=$(SLO)$/RTFScanner.obj $(SLO)$/RTFParseException.obj
41
42
43SHL1TARGET=$(TARGET)
44
45SHL1STDLIBS=$(SALLIB)\
46	$(CPPULIB)\
47	$(CPPUHELPERLIB)
48SHL1IMPLIB=i$(SHL1TARGET)
49SHL1USE_EXPORTS=name
50
51SHL1OBJS=$(SLOFILES)
52
53SHL1DEF=$(MISC)$/$(SHL1TARGET).def
54DEF1NAME=$(SHL1TARGET)
55DEFLIB1NAME=$(TARGET)
56
57# --- Targets ------------------------------------------------------
58
59.INCLUDE :	target.mk
60
61RTFSCANNERCXX=$(MISC)/RTFScanner.cxx
62
63GENERATEDFILES=$(RTFSCANNERCXX)
64
65$(RTFSCANNERCXX): RTFScanner.lex RTFScanner.skl FlexLexer.h
66	flex -+ -SRTFScanner.skl -o$@ RTFScanner.lex
67
68$(SLO)/RTFScanner.obj: $(RTFSCANNERCXX)
69
70.PHONY: genmake genclean
71
72genmake: $(GENERATEDFILES)
73
74genclean:
75	rm $(GENERATEDFILES)
76