# $Id$ ## @file # # kNIX Boostrap Makefile for flex # # Copyright (c) 2007 knut st. osmundsen # # # This file is part of kLIBC. # # kLIBC is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # kLIBC is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with kLIBC; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # DEPTH = ../../.. include $(PATH_KBUILD)/header.kmk # # flex # PROGRAMS += flex flex_TEMPLATE = usr.bin flex_DEFS = HAVE_CONFIG_H LOCALEDIR=\"/@unixroot/usr/share/locale\" flex_INCS = $(PATH_TARGET) flex_SOURCES = \ ccl.c \ dfa.c \ ecs.c \ gen.c \ main.c \ misc.c \ nfa.c \ parse.c \ scan.c \ skel.c \ sym.c \ tblcmp.c \ yylex.c \ options.c \ scanopt.c \ buf.c \ tables.c \ tables_shared.c \ filter.c \ regex.c ## @todo scan.l & parse.y flex_ORDERDEPS = \ $(PATH_TARGET)/config.h # # libfl # LIBRARIES += libfl libfl_TEMPLATE = usr.lib libfl_DEFS = HAVE_CONFIG_H LOCALEDIR=\"/@unixroot/usr/share/locale\" libfl_INCS = $(PATH_TARGET) libfl_SOURCES = \ libmain.c \ libyywrap.c # # FlexLexer.h. # INSTALLS += flexhdr flexhdr_TEMPLATE = usr.include flexhdr_SOURCES = FlexLexer.h # # config.h # $(PATH_TARGET)/config.h: kNIX-boostrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h $(INSTALL) $< $@ include $(PATH_KBUILD)/footer.kmk