fix build xmdp package (#633)

pull/635/head
cronyx 2023-02-03 20:42:57 +03:00 committed by GitHub
parent f9798c5d3f
commit 2ad030ec31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -13,6 +13,8 @@
#include "netip.h"
#include "utils.h"
#include <sys/select.h>
#define PACKED __attribute__((packed))
#define OP_LOGIN 1000

View File

@ -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