From a33e0f8381b7ca60279509bb2754fdcc5d945723 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sat, 7 Nov 2020 21:13:17 +0100 Subject: [PATCH] build a static library containing all created objects --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4534c90..34b6c26 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ CC=arm-none-eabi-gcc +AR=arm-none-eabi-ar CFLAGS=-iquote Ethernet -iquote Application -iquote Internet -Wall @@ -19,7 +20,7 @@ OBJS=$(addprefix $(OBJDIR)/,wizchip_conf.o socket.o w5500.o \ all: $(OBJS) - ls $^ + $(AR) rcs w5500.a $^ $(OBJDIR)/%.o: %.c $(CC) $(CFLAGS) -c $< -o $@