- @echo "[ creating $(COMPONENT).o ]"
- @echo [ updating $(COMPONENT).o ${BSD_KERNEL_CONFIG} ]
- $(LD) $(LDFLAGS_COMPONENT) -o $(COMPONENT).o ${LDOBJS}
+ @echo LDFILELIST $(COMPONENT)
+ $(_v)( for obj in ${LDOBJS}; do \
+ echo $(TARGET)$(COMP_OBJ_DIR)/$(KERNEL_CONFIG)/$${obj}; \
+ done; ) > $(COMPONENT).o
+
+MAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh
+
+init_sysent.c: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS)
+ @echo "Generating $@ from $<";
+ $(_v)$(MAKESYSCALLS) $< table > /dev/null
+
+syscalls.c: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS)
+ @echo "Generating $@ from $<";
+ $(_v)$(MAKESYSCALLS) $< names > /dev/null
+
+audit_kevents.c: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS)
+ @echo "Generating $@ from $<";
+ $(_v)$(MAKESYSCALLS) $< audit > /dev/null