mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-19 17:53:00 +01:00
Add bison 3.4.1.
This commit is contained in:
parent
fb554b3685
commit
1a93f19e9c
18 changed files with 2495 additions and 12 deletions
23
sysa/bison-3.4.1/mk/src.mk
Normal file
23
sysa/bison-3.4.1/mk/src.mk
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# SPDX-FileCopyrightText: 2020 Giovanni Mascellani gio@debian.org
|
||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src.a: AnnotationList.o assoc.o closure.o complain.o conflicts.o derives.o files.o fixits.o getargs.o gram.o graphviz.o ielr.o InadequacyList.o lalr.o location.o lr0.o main.o muscle-tab.o named-ref.o nullable.o output.o parse-gram.o print.o print-graph.o print-xml.o reader.o reduce.o relation.o Sbitset.o scan-code.o scan-gram.o scan-skel.o state.o symlist.o symtab.o tables.o uniqstr.o
|
||||
$(AR) r $@ $^
|
||||
|
||||
closure.o: parse-gram.h
|
||||
parse-gram.h: parse-gram.c
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -g -c -I. -I.. -I../lib -o $@ $<
|
||||
|
||||
%.c: %.y
|
||||
bison -dv $<
|
||||
mv $(shell echo $@ | sed -e 's/c$$/tab.c/') $@
|
||||
mv $(shell echo $@ | sed -e 's/c$$/tab.h/') $(shell echo $@ | sed -e 's/c$$/h/')
|
||||
|
||||
%.c: %.l
|
||||
/bin/sh ../build-aux/ylwrap $< lex.yy.c $@ -- flex
|
||||
|
||||
.PRECIOUS: %.c %.o %.h
|
||||
Loading…
Add table
Add a link
Reference in a new issue