logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

src.mk (939B)


  1. # SPDX-FileCopyrightText: 2020 Giovanni Mascellani gio@debian.org
  2. # SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
  3. #
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. 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
  6. $(AR) r $@ $^
  7. closure.o: parse-gram.h
  8. parse-gram.h: parse-gram.c
  9. %.o: %.c
  10. $(CC) $(CFLAGS) -g -c -I. -I.. -I../lib -o $@ $<
  11. %.c: %.y
  12. bison -dv $<
  13. mv $(shell echo $@ | sed -e 's/c$$/tab.c/') $@
  14. mv $(shell echo $@ | sed -e 's/c$$/tab.h/') $(shell echo $@ | sed -e 's/c$$/h/')
  15. %.c: %.l
  16. /bin/sh ../build-aux/ylwrap $< lex.yy.c $@ -- flex
  17. .PRECIOUS: %.c %.o %.h