Hello, Below is the makefile I use for building lwip as a static library. I like it because it's short and easy to understand. (I used a few gmake-specific extensions.)
CC = sh4gcc AR = sh4ar PORT_DIR = os21_port CFLAGS += -Wall CFLAGS += -mruntime=os21 CFLAGS += -I src/include -I src/include/ipv4 -I $(PORT_DIR) SOURCES := $(wildcard src/core/*.c) $(wildcard src/core/ipv4/*.c) $(wildcard src/api/*.c) src/netif/etharp.c OBJECTS := $(SOURCES:%.c=%.o) $(PORT_DIR)/sys_arch.o $(PORT_DIR)/ethernetif.o lwip.a: $(OBJECTS) $(AR) -r $@ $^ $(PORT_DIR)/ethernetif.o: CFLAGS += -I ${OSPLUSROOT}/include clean: rm -f $(LIB) $(OBJECTS) -- Regards. _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users