From d622e4d224acbe1a8dda3fcfb0bb1e1dab3f46f0 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Fri, 27 Dec 2019 23:48:45 -0600 Subject: [PATCH] Build: build Userland binaries separately Touching one source file shouldn't require relinking all binaries, consider each one separate. Also fix building library dependencies. --- Userland/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Userland/Makefile b/Userland/Makefile index 843d33d9a4..2188d72adb 100644 --- a/Userland/Makefile +++ b/Userland/Makefile @@ -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