mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
Build: show directory during compilation, remove default rules
When using -j, it can be confusing to see files being compiled out of order, so prefix compilation with the directory it's building for.
This commit is contained in:
parent
a1fd2eb237
commit
99e06c53e5
Notes:
sideshowbarker
2024-07-19 10:27:53 +09:00
Author: https://github.com/jcs Commit: https://github.com/SerenityOS/serenity/commit/99e06c53e51 Pull-request: https://github.com/SerenityOS/serenity/pull/987
1 changed files with 8 additions and 6 deletions
|
@ -84,24 +84,26 @@ endif
|
|||
|
||||
-include $(SUFFIXED_OBJS:%.o=%.d)
|
||||
|
||||
.SUFFIXES:
|
||||
|
||||
%$(OBJ_SUFFIX).o: %.cpp $(EXTRA_SOURCES)
|
||||
@echo "C++ $@"
|
||||
@echo "$(notdir $(CURDIR)): C++ $@"
|
||||
$(QUIET) $(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||
|
||||
%$(OBJ_SUFFIX).o: %.c
|
||||
@echo "C $@"
|
||||
@echo "$(notdir $(CURDIR)): C $@"
|
||||
$(QUIET) $(CC) $(CFLAGS) -o $@ -c $<
|
||||
|
||||
%.ao: %.S
|
||||
@echo "AS $@"
|
||||
@echo "$(notdir $(CURDIR)): AS $@"
|
||||
$(QUIET) $(AS) -o $@ $<
|
||||
|
||||
$(PROGRAM): $(STATIC_LIB_DEPS) $(SUFFIXED_OBJS) $(EXTRA_OBJS)
|
||||
@echo "LINK $(PROGRAM)"
|
||||
@echo "$(notdir $(CURDIR)): LINK $(PROGRAM)"
|
||||
$(QUIET) $(CXX) -o $(PROGRAM) $(EXTRA_OBJS) $(SUFFIXED_OBJS) $(LDFLAGS)
|
||||
|
||||
$(LIBRARY): $(SUFFIXED_OBJS) $(EXTRA_OBJS)
|
||||
@echo "LIB $@"
|
||||
@echo "$(notdir $(CURDIR)): LIB $@"
|
||||
$(QUIET) $(AR) rcs $@ $(OBJS) $(EXTRA_OBJS) $(LIBS)
|
||||
$(POST_LIBRARY_BUILD)
|
||||
|
||||
|
@ -126,7 +128,7 @@ all: $(PROGRAM) $(LIBRARY)
|
|||
EXTRA_CLEAN ?=
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"
|
||||
@echo "$(notdir $(CURDIR)): CLEAN"
|
||||
$(QUIET) rm -f $(PROGRAM) $(LIBRARY) $(SUFFIXED_OBJS) $(EXTRA_OBJS) *.d $(EXTRA_CLEAN)
|
||||
|
||||
install:
|
||||
|
|
Loading…
Reference in a new issue