source: trunk/essentials/sys-devel/flex/kNIX-bootstrap.kmk@ 3091

Last change on this file since 3091 was 3065, checked in by bird, 18 years ago

move cleanup.

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: kNIX-bootstrap.kmk 3065 2007-04-08 20:48:10Z 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
27DEPTH = ../../..
28include $(PATH_KBUILD)/header.kmk
29
30#
31# flex
32#
33PROGRAMS += flex
34flex_TEMPLATE = usr.bin
35flex_DEFS = HAVE_CONFIG_H LOCALEDIR=\"/@unixroot/usr/share/locale\"
36flex_INCS = $(PATH_TARGET)
37flex_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
59flex_ORDERDEPS = \
60 $(PATH_TARGET)/config.h
61
62#
63# libfl
64#
65LIBRARIES += libfl
66libfl_TEMPLATE = usr.lib
67libfl_DEFS = HAVE_CONFIG_H LOCALEDIR=\"/@unixroot/usr/share/locale\"
68libfl_INCS = $(PATH_TARGET)
69libfl_SOURCES = \
70 libmain.c \
71 libyywrap.c
72
73#
74# FlexLexer.h.
75#
76INSTALLS += flexhdr
77flexhdr_TEMPLATE = usr.include
78flexhdr_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
87include $(PATH_KBUILD)/footer.kmk
88
Note: See TracBrowser for help on using the repository browser.