# Alessandro Rubini for CERN, 2011 -- public domain# All files are under A (short for ARCH): I'm lazyA:= arch-$(ARCH)LIBARCH:=$A/libarch.aOBJ-libarch:=$A/posix-startup.o \$A/main-loop.o \$A/posix-socket.o \$A/posix-io.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 $(LIBARCH)$(CC)-Wl,-Map,$(TARGET).map2 -o$@$(TARGET).o \-L$A-larch-L$D-lstd