build a static library containing all created objects

This commit is contained in:
2020-11-07 21:13:17 +01:00
parent 46df6545d9
commit a33e0f8381

View File

@ -1,4 +1,5 @@
CC=arm-none-eabi-gcc CC=arm-none-eabi-gcc
AR=arm-none-eabi-ar
CFLAGS=-iquote Ethernet -iquote Application -iquote Internet -Wall CFLAGS=-iquote Ethernet -iquote Application -iquote Internet -Wall
@ -19,7 +20,7 @@ OBJS=$(addprefix $(OBJDIR)/,wizchip_conf.o socket.o w5500.o \
all: $(OBJS) all: $(OBJS)
ls $^ $(AR) rcs w5500.a $^
$(OBJDIR)/%.o: %.c $(OBJDIR)/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@