diff options
| author | Lua Team <team@lua.org> | 2003-04-11 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 2003-04-11 12:00:00 +0000 |
| commit | f0e4e22f5c119865eb5a8d3844a40df2d5980b3b (patch) | |
| tree | c4df063a747e9c99f8aba1678588a030993780a9 /src/luac/Makefile | |
| parent | 1981b7c90eb09e956e969cda5c473be4560af573 (diff) | |
| download | lua-github-5.0.tar.gz | |
Lua 5.05.0
Diffstat (limited to 'src/luac/Makefile')
| -rw-r--r-- | src/luac/Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/luac/Makefile b/src/luac/Makefile index 4517d82b..7a620826 100644 --- a/src/luac/Makefile +++ b/src/luac/Makefile @@ -4,20 +4,27 @@ LUA= ../.. include $(LUA)/config -INCS= -I$(INC) $(EXTRA_INCS) -I.. -OBJS= dump.o luac.o opt.o print.o stubs.o -SRCS= dump.c luac.c opt.c print.c stubs.c luac.h print.h +INCS= -I$(INC) -I.. $(EXTRA_INCS) +OBJS= luac.o print.o lopcodes.o +SRCS= luac.c print.c T= $(BIN)/luac -all: $T +all: $T -$T: $(OBJS) $(LIB)/liblua.a - $(CC) -o $@ $(OBJS) -L$(LIB) -llua +$T: $(OBJS) $(LIB)/liblua.a $(LIB)/liblualib.a + $(CC) -o $@ $(MYLDFLAGS) $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS) + +# print.c needs opcode names from lopcodes.c +lopcodes.o: ../lopcodes.c ../lopcodes.h + $(CC) -o $@ -c $(CFLAGS) -DLUA_OPNAMES ../lopcodes.c $(LIB)/liblua.a: cd ..; $(MAKE) +$(LIB)/liblualib.a: + cd ../lib; $(MAKE) + clean: rm -f $(OBJS) $T |
