From 7aae14e9b83242c2778e57c069fb8f299b8172f3 Mon Sep 17 00:00:00 2001 From: Marius Nita Date: Mon, 14 Apr 2003 06:04:49 +0000 Subject: beginning of obcl. the parser works with semicolons after statements for now, there is much left to change and do. --- obcl/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 obcl/Makefile (limited to 'obcl/Makefile') diff --git a/obcl/Makefile b/obcl/Makefile new file mode 100644 index 00000000..03c3a5dc --- /dev/null +++ b/obcl/Makefile @@ -0,0 +1,23 @@ +CFLAGS=-ansi -pedantic -Wall `pkg-config --cflags glib-2.0` +LIBS=`pkg-config --libs glib-2.0` -ll + +targets = cltest + +sources = obcl.c main.c parse.c lex.c +headers = obcl.h + +.PHONY: all clean + +all: $(targets) + +$(targets): $(sources:.c=.o) + $(CC) -o $@ $^ $(LIBS) + +parse.c: parse.y + $(YACC) -d -o$@ $^ + +lex.c: lex.l + $(LEX) -o$@ $^ + +clean: + $(RM) $(targets) *.o core *~ lex.c parse.c parse.h -- cgit v1.2.3