4 # Remove selected header files.
5 $(RM) $(patsubst %,$(SYSROOT_INC)/%,$(MUSL_OMIT_HEADERS))
9 startup_files: include_dirs
11 # Build the startup files.
13 mkdir -p "$(SYSROOT_LIB)" && \
14 mv *.o "$(SYSROOT_LIB)"
19 $(SYSROOT_LIB)/libc.a \
20 $(SYSROOT_LIB)/libc-printscan-long-double.a \
22 $(SYSROOT_LIB)/libwasi-emulated-getpid.a \
23 $(SYSROOT_LIB)/libwasi-emulated-signal.a
27 finish: startup_files libc
29 # Create empty placeholder libraries.
32 # The build succeeded! The generated sysroot is in $(SYSROOT).
36 # The check for defined and undefined symbols expects there to be a heap
37 # alloctor (providing malloc, calloc, free, etc). Skip this step if the build
42 + $(RM) -f include_dirs startup_files libc finish
44 .PHONY: default startup_files libc finish install include_dirs clean