mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
d622e4d224
Touching one source file shouldn't require relinking all binaries, consider each one separate. Also fix building library dependencies.
22 lines
395 B
Makefile
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)
|