diff options
| author | Lua Team <team@lua.org> | 1994-07-08 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 1994-07-08 12:00:00 +0000 |
| commit | 944fc7d7d95575f2b8023c1f3d4ac19e1369fc76 (patch) | |
| tree | eabf0822f2058229cd0d49c7928683b8cf0ed88e /src/yacc/Makefile | |
| parent | 8b5979a7e8b9732aa2883d2384f853d87b594770 (diff) | |
| download | lua-github-1.1.tar.gz | |
Lua 1.11.1
Diffstat (limited to 'src/yacc/Makefile')
| -rw-r--r-- | src/yacc/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/yacc/Makefile b/src/yacc/Makefile new file mode 100644 index 00000000..1d887e10 --- /dev/null +++ b/src/yacc/Makefile @@ -0,0 +1,27 @@ +# makefile for lua + +LIB= $(LUA)/lib +INC= $(LUA)/inc + +CC= gcc +CFLAGS= -g -Wall -O2 -I$(INC) $(DEFS) +DEFS= -DMAXCODE=64000 -DMAXCONSTANT=1024 -DMAXSYMBOL=1024 -DMAXARRAY=1024 + +OBJS= hash.o inout.o lex.o opcode.o table.o y.tab.o +SLIB= $(LIB)/lua.a +DLIB= $(LIB)/liblua.so.1.1 + +libs: $(SLIB) $(DLIB) + +$(SLIB): y.tab.c $(OBJS) + ar ruvl $@ $(OBJS) + ranlib $(SLIB) + +$(DLIB): $(OBJS) + ld -o $@ $(OBJS) + +y.tab.c: lua.stx exscript + yacc -d lua.stx ; ex y.tab.c <exscript + +clean: + rm -f $(OBJS) $(SLIB) $(DLIB) |
