fix build bug

This commit is contained in:
fujr 2024-11-06 16:14:18 +08:00
parent 5275942584
commit 4f0830e330
2 changed files with 3 additions and 4 deletions

View File

@ -28,10 +28,9 @@ define Build/Prepare
$(CP) src/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
ifdef CONFIG_PACKAGE_$(PKG_NAME)_EARLY_RETURN
TARGET_CFLAGS+=-DEARLY_RETURN
else
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)"
endef

View File

@ -2,7 +2,7 @@ TARGET = tom_modem
CFLAGS ?= -Wall -Iextlib
SRCS = main.c utils.c extlib/pdu.c extlib/ucs2_to_utf8.c
SRCS = main.c utils.c operations.c ttydevice.c extlib/pdu.c extlib/ucs2_to_utf8.c
OBJS = $(SRCS:.c=.o)