Build: build Userland binaries separately

Touching one source file shouldn't require relinking all binaries,
consider each one separate.  Also fix building library dependencies.
This commit is contained in:
joshua stein 2019-12-27 23:48:45 -06:00 committed by Andreas Kling
commit d622e4d224
Notes: sideshowbarker 2024-07-19 10:35:04 +09:00

View file

@ -6,13 +6,17 @@ EXTRA_CLEAN = $(APPS)
LIB_DEPS = HTML GUI Draw Audio Protocol IPC Thread Pthread Core PCIDB Markdown
all: $(OBJS) $(APPS)
include ../Makefile.common
all: $(APPS)
list:
@echo $(APPS)
$(APPS): %: %.o $(OBJS)
%.o: %.cpp
@echo "C++ $@"
$(QUIET) $(CXX) $(CXXFLAGS) -o $@ -c $<
$(APPS): %: %.o $(STATIC_LIB_DEPS)
@echo "LINK $@"
$(QUIET) $(CXX) -o $@ $< $(LDFLAGS)
include ../Makefile.common