diff options
| author | Marius Nita <marius@cs.pdx.edu> | 2003-04-14 06:04:49 +0000 |
|---|---|---|
| committer | Marius Nita <marius@cs.pdx.edu> | 2003-04-14 06:04:49 +0000 |
| commit | 7aae14e9b83242c2778e57c069fb8f299b8172f3 (patch) | |
| tree | 80892567a99c251b0ae957c51309645b6d27dc98 /obcl/Makefile | |
| parent | 69854023a4f36deb80c7c3dee891acc48f8ae6da (diff) | |
beginning of obcl. the parser works with semicolons after statements
for now, there is much left to change and do.
Diffstat (limited to 'obcl/Makefile')
| -rw-r--r-- | obcl/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
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 |
