shithub: scc

ref: 4c00c4e8204f98a5859ef6c0bfe8d2e4d6f168d2
dir: /lib/sys/common.mk/

View raw version
.POSIX:

PROJECTDIR = ../../..

include $(PROJECTDIR)/rules.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 $@