shithub: scc

ref: 9c39deaf29a1e655ab9d7fd35e6c6f86dc621bb9
dir: /lib/sys/common.mk/

View raw version
.POSIX:

include ../../../config.mk

all clean distclean: system.mk
	$(MAKE) ABI=$(ABI) -f ../libsys.mk $@

system.mk: syscall.lst
	rm -f $@; trap "rm -f $$$$.mk" 0 2 3; \
	awk 'BEGIN{printf "OBJ = "} \
	     ! /^#/ {printf "%s.o ", $$2}' syscall.lst > $$$$.mk && \
	mv $$$$.mk $@