lua-users home
lua-l archive

Re: [ANN] Lua 5.1.3-rc5 now available

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Luiz Henrique de Figueiredo writes:
> Lua 5.1.3-rc5 is now available...
etc/Makefile fails under Cygwin (and probably also MinGW) since there gcc's
default output file is a.exe rather than a.out. Here's a fix:
$ diff -u Makefile~ Makefile
--- Makefile~ 2006年02月07日 14:09:30.000000000 -0500
+++ Makefile 2008年01月21日 14:36:54.261662600 -0500
@@ -19,18 +19,18 @@
 @echo 'Please choose a target: min noparser one strict clean'
 min: min.c
- $(CC) $(CFLAGS) $@.c -L$(LIB) -llua $(MYLIBS)
- echo 'print"Hello there!"' | ./a.out
+ $(CC) $(CFLAGS) -o luatest $@.c -L$(LIB) -llua $(MYLIBS)
+ echo 'print"Hello there!"' | ./luatest
 noparser: noparser.o
- $(CC) noparser.o $(SRC)/lua.o -L$(LIB) -llua $(MYLIBS)
+ $(CC) -o luatest noparser.o $(SRC)/lua.o -L$(LIB) -llua $(MYLIBS)
 $(BIN)/luac $(TST)/hello.lua
- -./a.out luac.out
- -./a.out -e'a=1'
+ -./luatest luac.out
+ -./luatest -e'a=1'
 one:
- $(CC) $(CFLAGS) all.c $(MYLIBS)
- ./a.out $(TST)/hello.lua
+ $(CC) -o luatest $(CFLAGS) all.c $(MYLIBS)
+ ./luatest $(TST)/hello.lua
 strict:
 -$(BIN)/lua -e 'print(a);b=2'
@@ -39,6 +39,6 @@
 -$(BIN)/lua -lstrict -e 'function f() b=2 end f()'
 clean:
- $(RM) a.out core core.* *.o luac.out
+ $(RM) luatest* core core.* *.o luac.out
 .PHONY: default min noparser one strict clean

AltStyle によって変換されたページ (->オリジナル) /