1 --- lua-5.1.1.orig/Makefile 2006-06-02 12:53:38.000000000 +0200
2 +++ lua-5.1.1/Makefile 2006-11-16 02:16:53.000000000 +0100
4 # so take care if INSTALL_TOP is not an absolute path.
5 INSTALL_TOP= /usr/local
6 INSTALL_BIN= $(INSTALL_TOP)/bin
7 -INSTALL_INC= $(INSTALL_TOP)/include
8 +INSTALL_INC= $(INSTALL_TOP)/include/lua$V
9 INSTALL_LIB= $(INSTALL_TOP)/lib
10 INSTALL_MAN= $(INSTALL_TOP)/man/man1
13 .PHONY: all $(PLATS) clean install local none dummy echo pecho lecho newer
17 +# Use libtool for binary installs, etc.
20 +export LIBTOOL = $(EROOT)/usr/bin/libtool --quiet --tag=CC
21 +# See libtool manual about how to set this
27 + mkdir -p $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB)
28 + cd src; $(LIBTOOL) --mode=install $(INSTALL_EXEC) lua$V luac$V $(INSTALL_BIN)
29 + cd src; $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
30 + cd src; $(LIBTOOL) --mode=install $(INSTALL_DATA) liblua$V.la $(INSTALL_LIB)
31 --- lua-5.1.1.orig/src/Makefile 2006-03-22 01:41:49.000000000 +0100
32 +++ lua-5.1.1/src/Makefile 2006-11-16 02:10:27.000000000 +0100
40 -$(LUA_T): $(LUA_O) $(LUA_A)
41 +origin$(LUA_T): $(LUA_O) $(LUA_A)
43 -$(LUAC_T): $(LUAC_O) $(LUA_A)
44 +origin$(LUAC_T): $(LUAC_O) $(LUA_A)
46 lzio.o: lzio.c lua.h luaconf.h llimits.h lmem.h lstate.h lobject.h ltm.h \
50 +export LIBTOOL = $(EROOT)/usr/bin/libtool --quiet --tag=CC
51 +export LIB_VERSION = 6:1:1
53 +# The following rules use libtool for compiling and linking in order to
54 +# provide shared library support.
56 +LIB_NAME = liblua$V.la
57 +LIB_OBJS = $(CORE_O:.o=.lo) $(LIB_O:.o=.lo)
60 + $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
62 +$(LIB_NAME): $(LIB_OBJS)
63 + $(LIBTOOL) --mode=link $(CC) -version-info $(LIB_VERSION) \
64 + -rpath $(RPATH) $(LDFLAGS) -o $(LIB_NAME) $(LIB_OBJS) $(LIB_LIBS)
66 +$(LUA_T): $(LUA_O:.o=.lo) $(LIB_NAME)
67 + $(LIBTOOL) --mode=link $(CC) -export-dynamic $(LDFLAGS) -o $@ $(LUA_O:.o=.lo) $(LIB_NAME) $(LUA_LIBS)
69 +$(LUAC_T): $(LUAC_O:.o=.lo) $(LIB_NAME)
70 + $(LIBTOOL) --mode=link $(CC) -static $(LDFLAGS) -o $@ $(LUAC_O:.o=.lo) $(LIB_NAME)
73 + $(LIBTOOL) --mode=clean $(RM) $(ALL_O:.o=.lo) $(LIB_NAME) lua$V luac$V
75 +gentoo_all: $(LIB_NAME) $(LUA_T) $(LUAC_T)