summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/automate
diff options
context:
space:
mode:
Diffstat (limited to '2003/i/buzz/src/automate')
-rw-r--r--2003/i/buzz/src/automate/GNUmakefile30
-rw-r--r--2003/i/buzz/src/automate/Makefile.defs5
-rw-r--r--2003/i/buzz/src/automate/lexer.ll2
3 files changed, 6 insertions, 31 deletions
diff --git a/2003/i/buzz/src/automate/GNUmakefile b/2003/i/buzz/src/automate/GNUmakefile
deleted file mode 100644
index 0f0e9b7..0000000
--- a/2003/i/buzz/src/automate/GNUmakefile
+++ /dev/null
@@ -1,30 +0,0 @@
-SRCDIR = ..
-CXXFLAGS = -Wall -g
-CPPFLAGS = -I$(SRCDIR)
-
-TARGETS = grafcet.a
-grafcet_a_SOURCES = grafcet.cc receptivite.cc action.cc grammar.tab.cc lexer.cc
-
-all: $(TARGETS)
-
-grammar.tab.cc grammar.tab.hh: grammar.yy
- bison $<
-
-lexer.cc: lexer.ll grammar.tab.hh
- flex -o$@ $<
-
-grafcet.a: ${grafcet_a_SOURCES:%.cc=grafcet.a(%.o)}
-
-.dep/%.d: %.cc .dep
- @set -e; $(CC) -M $(CPPFLAGS) $< \
- | sed 's/\($*\)\.o[ :]*/\1.o .dep\/$*.d : /g' > $@; \
- [ -s $@ ] || rm -f $@
-
--include $(grafcet_a_SOURCES:%.cc=.dep/%.d)
-
-.dep:
- @mkdir .dep
-
-clean:
- rm -f $(TARGETS) *.o
- rm -rf .dep
diff --git a/2003/i/buzz/src/automate/Makefile.defs b/2003/i/buzz/src/automate/Makefile.defs
new file mode 100644
index 0000000..ca0a7a9
--- /dev/null
+++ b/2003/i/buzz/src/automate/Makefile.defs
@@ -0,0 +1,5 @@
+automate_a_SOURCES = grafcet.cc receptivite.cc action.cc grammar.cc lexer.cc
+
+extra_clean += grammar.h grammar.cc lexer.cc
+
+automate.a: ${automate_a_SOURCES:%.cc=automate.a(%.o)}
diff --git a/2003/i/buzz/src/automate/lexer.ll b/2003/i/buzz/src/automate/lexer.ll
index 6760aee..9cf6c93 100644
--- a/2003/i/buzz/src/automate/lexer.ll
+++ b/2003/i/buzz/src/automate/lexer.ll
@@ -5,7 +5,7 @@ using namespace std;
#include "grafcet.h"
using namespace Automate;
-#include "grammar.tab.hh"
+#include "grammar.h"
int yyparse (void);