1 | # $Id: kNIX-bootstrap.kmk 3845 2014-03-16 20:31:39Z bird $
|
---|
2 | ## @file
|
---|
3 | #
|
---|
4 | # kNIX Boostrap Makefile for flex
|
---|
5 | #
|
---|
6 | # Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net>
|
---|
7 | #
|
---|
8 | #
|
---|
9 | # This file is part of kLIBC.
|
---|
10 | #
|
---|
11 | # kLIBC is free software; you can redistribute it and/or modify
|
---|
12 | # it under the terms of the GNU General Public License as published by
|
---|
13 | # the Free Software Foundation; either version 2 of the License, or
|
---|
14 | # (at your option) any later version.
|
---|
15 | #
|
---|
16 | # kLIBC is distributed in the hope that it will be useful,
|
---|
17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
19 | # GNU General Public License for more details.
|
---|
20 | #
|
---|
21 | # You should have received a copy of the GNU General Public License
|
---|
22 | # along with kLIBC; if not, write to the Free Software
|
---|
23 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
24 | #
|
---|
25 | #
|
---|
26 |
|
---|
27 | DEPTH = ../../..
|
---|
28 | include $(PATH_KBUILD)/header.kmk
|
---|
29 |
|
---|
30 | #
|
---|
31 | # flex
|
---|
32 | #
|
---|
33 | PROGRAMS += flex
|
---|
34 | flex_TEMPLATE = usr.bin
|
---|
35 | flex_DEFS = HAVE_CONFIG_H LOCALEDIR=\"/@unixroot/usr/share/locale\"
|
---|
36 | flex_INCS = $(PATH_TARGET)
|
---|
37 | flex_SOURCES = \
|
---|
38 | ccl.c \
|
---|
39 | dfa.c \
|
---|
40 | ecs.c \
|
---|
41 | gen.c \
|
---|
42 | main.c \
|
---|
43 | misc.c \
|
---|
44 | nfa.c \
|
---|
45 | parse.c \
|
---|
46 | scan.c \
|
---|
47 | skel.c \
|
---|
48 | sym.c \
|
---|
49 | tblcmp.c \
|
---|
50 | yylex.c \
|
---|
51 | options.c \
|
---|
52 | scanopt.c \
|
---|
53 | buf.c \
|
---|
54 | tables.c \
|
---|
55 | tables_shared.c \
|
---|
56 | filter.c \
|
---|
57 | regex.c
|
---|
58 | ## @todo scan.l & parse.y
|
---|
59 | flex_ORDERDEPS = \
|
---|
60 | $(PATH_TARGET)/config.h
|
---|
61 |
|
---|
62 | #
|
---|
63 | # libfl
|
---|
64 | #
|
---|
65 | LIBRARIES += libfl
|
---|
66 | libfl_TEMPLATE = usr.lib
|
---|
67 | libfl_DEFS = HAVE_CONFIG_H LOCALEDIR=\"/@unixroot/usr/share/locale\"
|
---|
68 | libfl_INCS = $(PATH_TARGET)
|
---|
69 | libfl_SOURCES = \
|
---|
70 | libmain.c \
|
---|
71 | libyywrap.c
|
---|
72 |
|
---|
73 | #
|
---|
74 | # FlexLexer.h.
|
---|
75 | #
|
---|
76 | INSTALLS += flexhdr
|
---|
77 | flexhdr_TEMPLATE = usr.include
|
---|
78 | flexhdr_SOURCES = FlexLexer.h
|
---|
79 |
|
---|
80 |
|
---|
81 | #
|
---|
82 | # config.h
|
---|
83 | #
|
---|
84 | $(PATH_TARGET)/config.h: kNIX-boostrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h
|
---|
85 | $(INSTALL) $< $@
|
---|
86 |
|
---|
87 | include $(PATH_KBUILD)/footer.kmk
|
---|
88 |
|
---|