shithub: scc

ref: 22e63b76976fd232a2e40e30845d35eca6325b02
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