Commit e688eba0 authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

fix build output

parent 2e8dca6e
...@@ -32,16 +32,12 @@ LIBTOOL=libtool ...@@ -32,16 +32,12 @@ LIBTOOL=libtool
@$(AR) $(ARFLAGS) $@ $^ @$(AR) $(ARFLAGS) $@ $^
%.tab.c %.tab.h: %.y %.tab.c %.tab.h: %.y
@echo "BISON $<" @echo " BISON $<"
@bison -d $< bison -d $<
%.yy.h: %.l %.tab.h %.yy.c %.yy.h: %.l %.tab.h
@echo " FLEX $<" @echo " FLEX $<"
@flex --header-file=$*.yy.h $< @flex --header-file=$*.yy.h -o $*.yy.c $<
%.yy.c: %.l %.tab.h
@echo " FLEX $<"
@flex -o $@ $<
# il2c: instruction list 2 c 'compiler' # il2c: instruction list 2 c 'compiler'
%.c %.h: %.il %.c %.h: %.il
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
%option noinput %option noinput
%option reentrant %option reentrant
%option bison-bridge %option bison-bridge
%option nounput
%{ %{
#include <stdio.h> #include <stdio.h>
......
...@@ -14,7 +14,7 @@ test: il2c ...@@ -14,7 +14,7 @@ test: il2c
SRCS= il2c.c SRCS= il2c.c
clean: clean:
rm -f il2c *.o *.tab.c *.tab.h *.yy.c *.d rm -f il2c *.o *.tab.c *.tab.h *.yy.c *.d *.lo
@$(MAKE) -C test clean @$(MAKE) -C test clean
include ../../build.mk include ../../build.mk
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment