shithub: scc

ref: 6f1a568924aa209ad591f3c540251f00006c655e
dir: /lib/sys/libsys.mk/

View raw version
.POSIX:

PROJECTDIR = ../../..

include $(PROJECTDIR)/rules.mk
include system.mk

ASM = $(OBJ:.o=.s)

all: libsys.a

libsys.a: $(OBJ)
	$(AR) $(ARFLAGS) $@ $?
	ranlib $@

$(ASM): syscall.lst
	../abi/$(ABI).sh

clean:
	rm -f $(ASM)
	rm -f $(OBJ)
	rm -f libsys.a

distclean: clean
	rm -f system.mk