shithub: scc

ref: 8b178526d17c09010b94b2c6655c0c98648a2f68
dir: /lib/sys/common.mk/

View raw version
# See LICENSE file for copyright and license details.
.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 $@