ladybird/Userland/Makefile
joshua stein d622e4d224 Build: build Userland binaries separately
Touching one source file shouldn't require relinking all binaries,
consider each one separate.  Also fix building library dependencies.
2019-12-28 21:09:33 +01:00

22 lines
395 B
Makefile

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