You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
diff --git a/src/Makefile b/src/Makefile
|
|
index d414341..4ace81c 100644
|
|
--- a/src/Makefile
|
|
+++ b/src/Makefile
|
|
@@ -1,9 +1,9 @@
|
|
-LUA = lua-5.1.4
|
|
+LUA = lua-5.2.4
|
|
#LUA = lua-5.2.0
|
|
STATIC = false
|
|
OPENSSL = /home/user/src/openssl-0.9.8e
|
|
|
|
-CFLAGS = -fno-exceptions -fno-rtti -O2 -I$(LUA) -L$(LUA)
|
|
+CFLAGS = -fno-exceptions -fno-rtti -O2
|
|
CFLAGS+= -I$(OPENSSL)/include -L$(OPENSSL)/lib/openwrt
|
|
SRC = main.cpp soap.cpp mem.cpp mcast.cpp luaxlib.cpp luaxcore.cpp luajson.cpp luajson_parser.cpp
|
|
LUAMYCFLAGS = -DLUA_USE_LINUX
|
|
@@ -87,10 +87,9 @@ dreambox:
|
|
|
|
|
|
embedded:
|
|
- PATH=$(PATH):$(UTILS) $(MAKE) -C $(LUA) CC=$(SDK)/gcc a MYCFLAGS='$(LUAMYCFLAGS)'
|
|
- $(SDK)/gcc -O2 -c -B$(UTILS) -o md5.o md5c.c
|
|
- $(SDK)/gcc $(CFLAGS) -B$(UTILS) -DWITH_URANDOM -o xupnpd-$(TARGET) $(SRC) md5.o -llua -lm -ldl -lssl -lcrypto
|
|
- $(SDK)/strip xupnpd-$(TARGET)
|
|
+ $(CC) -O2 -c -o md5.o md5c.c
|
|
+ $(CC) $(CFLAGS) $(LUAFLAGS) -B$(UTILS) -DWITH_URANDOM -o xupnpd $(SRC) md5.o -llua -lm -ldl -lssl -lcrypto -rdynamic
|
|
+ $(STRIP) xupnpd
|
|
|
|
clean:
|
|
$(MAKE) -C $(LUA) clean
|
|
|