modify makefile

This commit is contained in:
lr 2024-05-16 15:48:48 +08:00
parent f81a16a041
commit 3cec54bf5f
6 changed files with 7 additions and 8 deletions

View File

@ -1,6 +1,6 @@
include $(KERNEL_ROOT)/services/net/net_server/lwip.mk include $(KERNEL_ROOT)/services/net/net_server/lwip.mk
net_server: lwip_server.o net_server: lwip_server.o COMPILER
@echo "generate $^" @echo "generate $^"
%.o: %.c %.o: %.c

View File

@ -13,10 +13,9 @@ objs += api_lib.o \
api: ${objs} api: ${objs}
@echo "generate $^" @echo "generate $^"
@mv $^ $(KERNEL_ROOT)/services/net/net_server
%.o: %.c %.o: %.c
@echo "cc $^" @echo "cc $^"
@${cc} ${cflags} ${c_useropts} ${INC_DIR} -o $@ -c $^ @${cc} ${cflags} ${c_useropts} ${INC_DIR} -o $@ -c $^
include $(KERNEL_ROOT)/compiler.mk

View File

@ -20,8 +20,9 @@ objs += altcp_alloc.o \
timeouts.o \ timeouts.o \
udp.o udp.o
core: ${objs} core: ${objs} COMPILER
@echo "generate $^" @echo "generate $^"
@mv $^ $(KERNEL_ROOT)/services/net/net_server
%.o: %.c %.o: %.c
@echo "cc $^" @echo "cc $^"

View File

@ -11,9 +11,8 @@ objs += autoip.o \
ip4: ${objs} ip4: ${objs}
@echo "generate $^" @echo "generate $^"
@mv $^ $(KERNEL_ROOT)/services/net/net_server
%.o: %.c %.o: %.c
@echo "cc $^" @echo "cc $^"
@${cc} ${cflags} ${c_useropts} ${INC_DIR} -o $@ -c $^ @${cc} ${cflags} ${c_useropts} ${INC_DIR} -o $@ -c $^
include $(KERNEL_ROOT)/compiler.mk

View File

@ -33,7 +33,7 @@
#define LWIP_ARCH_CC_H #define LWIP_ARCH_CC_H
// #include "stdio.h" // #include "stdio.h"
#include "libserial.h"
//typedef unsigned char u8_t; //typedef unsigned char u8_t;
//typedef signed char s8_t; //typedef signed char s8_t;

View File

@ -6,9 +6,9 @@ objs += bridgeif.o \
netif:${objs} netif:${objs}
@echo "generate $^" @echo "generate $^"
@mv $^ $(KERNEL_ROOT)/services/net/net_server
%.o: %.c %.o: %.c
@echo "cc $^" @echo "cc $^"
@${cc} ${cflags} ${c_useropts} ${INC_DIR} -o $@ -c $^ @${cc} ${cflags} ${c_useropts} ${INC_DIR} -o $@ -c $^
include $(KERNEL_ROOT)/compiler.mk