Skip to content

Commit

Permalink
Makefile: separate the target to create empty dummy libraries
Browse files Browse the repository at this point in the history
During develompment, it's sometimes convenient to have a separate target.
  • Loading branch information
yamt committed May 27, 2024
1 parent 7528b13 commit 9dde172
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -785,14 +785,15 @@ endif

libc: include_dirs $(STATIC_LIBS)

finish: startup_files libc
dummy_libs:
#
# Create empty placeholder libraries.
#
for name in m rt pthread crypt util xnet resolv; do \
$(AR) crs "$(SYSROOT_LIB)/lib$${name}.a"; \
done

finish: startup_files libc dummy_libs
#
# The build succeeded! The generated sysroot is in $(SYSROOT).
#
Expand Down Expand Up @@ -989,4 +990,4 @@ clean:
$(RM) -r "$(OBJDIR)"
$(RM) -r "$(SYSROOT)"

.PHONY: default startup_files libc libc_so finish install include_dirs clean check-symbols bindings
.PHONY: default startup_files libc libc_so dummy_libs finish install include_dirs clean check-symbols bindings

0 comments on commit 9dde172

Please sign in to comment.