mirror of https://github.com/OpenIPC/firmware.git
fix build xmdp package (#633)
parent
f9798c5d3f
commit
2ad030ec31
|
@ -13,6 +13,8 @@
|
|||
#include "netip.h"
|
||||
#include "utils.h"
|
||||
|
||||
#include <sys/select.h>
|
||||
|
||||
#define PACKED __attribute__((packed))
|
||||
|
||||
#define OP_LOGIN 1000
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
################################################################################
|
||||
#
|
||||
# xmdp | updated 2022.08.10
|
||||
# xmdp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
|
@ -10,15 +10,13 @@ define XMDP_EXTRACT_CMDS
|
|||
cp -avr ../general/package/xmdp/src/* $(@D)/
|
||||
endef
|
||||
|
||||
#define XMDP_BUILD_CMDS
|
||||
# (cd $(@D); $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -O -g -D LINUX -std=c99 -Wall -Wpedantic -lm -o $(PKG_NAME) xmdp.c netip.c utils.c cjson/cJSON.c)
|
||||
#endef
|
||||
XMDP_MAKE_OPTS = \
|
||||
CC="$(TARGET_CC)"
|
||||
|
||||
define XMDP_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
||||
$(MAKE) $(XMDP_MAKE_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
|
||||
define XMDP_INSTALL_TARGET_CMDS
|
||||
install -m 0755 -D $(@D)/xmdp $(TARGET_DIR)/usr/bin/xmdp
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue