summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchatty1999-01-19 13:04:55 +0000
committerchatty1999-01-19 13:04:55 +0000
commit42349d1a03a5d67099e1e777ce91ee3846514b15 (patch)
tree3fe3eb8657b41bf39940e14051162a4d12b84221
parent0118246b32fe0ccc5f289cc350f32fb935305959 (diff)
downloadirbox-42349d1a03a5d67099e1e777ce91ee3846514b15.zip
irbox-42349d1a03a5d67099e1e777ce91ee3846514b15.tar.gz
irbox-42349d1a03a5d67099e1e777ce91ee3846514b15.tar.bz2
irbox-42349d1a03a5d67099e1e777ce91ee3846514b15.tar.xz
Added grammar and tables.
-rw-r--r--Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 40f9032..92f2b98 100644
--- a/Makefile
+++ b/Makefile
@@ -12,22 +12,30 @@
SHELL = /bin/sh
CC = gcc
-SRCS = irdev.c irbox.c
-OBJS = irdev.o irbox.o
+SRCS = irdev.c irtable.c irman.c
+OBJS = irdev.o irtable.o lex.yy.o y.tab.o irman.o
CDEFS =
-COPTS = -g -Wall -DDEBUG_RECEIVE
+COPTS = -g -Wall
CINCS =
CFLAGS = $(CDEBUGFLAGS) $(CDEFS) $(COPTS) $(CINCS)
-all: irbox
+all: irman
-irbox: $(OBJS)
+irman: $(OBJS)
$(CC) $(CFLAGS) -o irbox $(OBJS) -L../IVY_C/src -livy
irdev.o: irdev.h
irbox.o: irdev.h
+y.tab.h y.tab.c: gram.y
+ yacc -d gram.y
+
+lex.yy.c: gram.l
+ lex gram.l
+
+lex.yy.o: lex.yy.c y.tab.h
+
clean:
- -/bin/rm -f *.a *.o *.out *.bak *.log irbox
+ -/bin/rm -f *.a *.o *.out *.bak *.yy.* *.tab.* *.log irbox