Submitted By: Luca Piol <liliana.perossa at fastwebnet dot it>
Date: 2006-10-04
Initial Package Version: 5.1.1
Upstream Status: Not submitted
Origin: Lua list <lua@bazar2.conectiva.com.br>
Description: Create the shared library along with the static library.
diff -Naur lua-5.1.1/src/Makefile lua-5.1.1/src/Makefile
old
|
new
|
|
31 | 31 | |
32 | 32 | LUA_T= lua |
33 | 33 | LUA_O= lua.o |
| 34 | LUA_SO= liblua.so |
34 | 35 | |
35 | 36 | LUAC_T= luac |
36 | 37 | LUAC_O= luac.o print.o |
37 | 38 | |
38 | 39 | ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O) |
39 | | ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) |
| 40 | ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO) |
40 | 41 | ALL_A= $(LUA_A) |
41 | 42 | |
42 | 43 | default: $(PLAT) |
… |
… |
|
57 | 58 | $(LUAC_T): $(LUAC_O) $(LUA_A) |
58 | 59 | $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS) |
59 | 60 | |
| 61 | $(LUA_SO): $(CORE_O) $(LIB_O) |
| 62 | $(CC) -o $@ -shared $? |
| 63 | |
60 | 64 | clean: |
61 | 65 | $(RM) $(ALL_T) $(ALL_O) |
62 | 66 | |