1# Licensed to the Apache Software Foundation (ASF) under one or more
2# contributor license agreements.  See the NOTICE file distributed with
3# this work for additional information regarding copyright ownership.
4# The ASF licenses this file to You under the Apache License, Version 2.0
5# (the "License"); you may not use this file except in compliance with
6# the License.  You may obtain a copy of the License at
7#
8#     http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16#
17#   standard stuff
18#
19
20include $(top_srcdir)/build/special.mk
21
22#
23#   developer stuff
24#   (we really don't expect end users to use these targets!)
25#
26
27ssl_expr_scan.c: $(top_srcdir)/modules/ssl/ssl_expr_scan.l ssl_expr_parse.h
28	flex -Pssl_expr_yy -s -B $(top_srcdir)/modules/ssl/ssl_expr_scan.l
29	sed -e '/$$Header:/d' -e "s|\"`pwd`/|\"|g" <lex.ssl_expr_yy.c >ssl_expr_scan.c && rm -f lex.ssl_expr_yy.c
30
31ssl_expr_parse.c ssl_expr_parse.h: $(top_srcdir)/modules/ssl/ssl_expr_parse.y
32	yacc -d $(top_srcdir)/modules/ssl/ssl_expr_parse.y
33	sed -e 's;yy;ssl_expr_yy;g' \
34	    -e "s|\"`pwd`/|\"|g" \
35	    -e '/#if defined(c_plusplus) || defined(__cplusplus)/,/#endif/d' \
36	    <y.tab.c >ssl_expr_parse.c && rm -f y.tab.c
37	sed -e 's;yy;ssl_expr_yy;g' \
38	    <y.tab.h >ssl_expr_parse.h && rm -f y.tab.h
39
40