ARCH_LDFLAGS=-nostdlib-static-T$(ARCH).lds# All files are under A (short for ARCH): I'm lazyA:= arch-$(ARCH)LIBARCH:=$A/libarch.aOBJ-libarch:=$A/bare-startup.o \$A/main-loop.o \$A/bare-socket.o \$A/bare-io.o \$A/syscalls.o$(LIBARCH):$(OBJ-libarch)$(AR) r $@$^all:$(TARGET)# to build the target, we need -lstd again, in case we call functions that# were not selected yet (e.g., pp_open_instance() ).$(TARGET):$(TARGET).o $A/crt0.o $(LIBARCH)$(CC)-Wl,-Map,$(TARGET).map2 $(ARCH_LDFLAGS)-o$@$A/crt0.o \$(TARGET).o -L$A-larch-L$D-lstd