Skip to content

Commit

Permalink
Build: build Userland binaries separately
Browse files Browse the repository at this point in the history
Touching one source file shouldn't require relinking all binaries,
consider each one separate.  Also fix building library dependencies.
  • Loading branch information
jcs authored and awesomekling committed Dec 28, 2019
1 parent 2d7259e commit d622e4d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Userland/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d622e4d

Please sign in to comment.