shithub: scc

ref: 9f051be97f07bbb71ae4394a91f74ed5acbb007a
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