Lines 49-62
Link Here
|
49 |
+$(LIB_NAME:.la=.a): $(LIB_OBJS) |
50 |
+$(LIB_NAME:.la=.a): $(LIB_OBJS) |
50 |
+ $(LIBTOOL) --mode=link $(CC) -static -o $(LIB_NAME:.la=.a) $(LIB_OBJS) |
51 |
+ $(LIBTOOL) --mode=link $(CC) -static -o $(LIB_NAME:.la=.a) $(LIB_OBJS) |
51 |
+ |
52 |
+ |
52 |
+$(LUA_T): $(LUA_O) $(LIB_NAME) |
53 |
+$(LUA_T): $(LUA_O:.o=.lo) $(LIB_NAME) |
53 |
+ $(LIBTOOL) --mode=link $(CC) -Wl,-E -o $@ $(LUA_O) $(LUA_LIBS) -llua |
54 |
+ $(LIBTOOL) --mode=link $(CC) -export-dynamic -o $@ $(LUA_O:.o=.lo) $(LUA_LIBS) -llua |
54 |
+ |
55 |
+ |
55 |
+lua_test: $(LUA_O) $(LIB_NAME) |
56 |
+lua_test: $(LUA_O:.o=.lo) $(LIB_NAME) |
56 |
+ $(LIBTOOL) --mode=link $(CC) -static -Wl,-E -o $@ $(LUA_O) $(LIB_NAME) $(LUA_LIBS) |
57 |
+ $(LIBTOOL) --mode=link $(CC) -static -export-dynamic -o $@ $(LUA_O:.o=.lo) $(LIB_NAME) $(LUA_LIBS) |
57 |
+ |
58 |
+ |
58 |
+$(LUAC_T): $(LUAC_O) $(LIB_NAME) |
59 |
+$(LUAC_T): $(LUAC_O:.o=.lo) $(LIB_NAME) |
59 |
+ $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LUAC_O) $(LIB_NAME) |
60 |
+ $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LUAC_O:.o=.lo) $(LIB_NAME) |
60 |
+ |
61 |
+ |
61 |
+gentoo_clean: |
62 |
+gentoo_clean: |
62 |
+ $(LIBTOOL) --mode=clean $(RM) $(ALL_O:.o=.lo) $(LIB_NAME) lua luac |
63 |
+ $(LIBTOOL) --mode=clean $(RM) $(ALL_O:.o=.lo) $(LIB_NAME) lua luac |