.PHONY: all saber tags

ifdef ARCH

XX1 := $(addsuffix $(ARCH)/,$(dir $(LIB)))
XX2 := $(notdir $(LIB))
ARCHLIB := $(join $(XX1),$(XX2))
ARCHOBJS := $(addprefix $(ARCH)/,$(OBJS))

all: $(ARCHLIB)

$(ARCHLIB): $(ARCHOBJS)
	/bin/rm -f $(ARCHLIB)
	ar cq $(ARCHLIB) $(ARCHOBJS)
	@$(RANLIB) $(ARCHLIB)

clean:
	-rm -f $(ARCHOBJS) $(ARCHLIB)

else 

all: $(LIB)

$(LIB): $(OBJS)
	/bin/rm -f $(LIB)
	ar cq $(LIB) $(OBJS)
	@$(RANLIB) $(LIB)

clean:
	-rm -f $(OBJS) $(LIB)

endif 	# ARCH

install:

saber:
	%load $(CFLAGS) $(SRCS) $(SFLAGS)

