mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
test: simplify Makefile
Make can build dependencies in parallel, so let Make do that. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
8147f80a5a
commit
85ff543695
@ -21,17 +21,10 @@ include ../makeflags
|
||||
LIBS = -lcrucible -lpthread
|
||||
BEES_LDFLAGS = -L../lib $(LDFLAGS)
|
||||
|
||||
.depends:
|
||||
mkdir -p $@
|
||||
|
||||
.depends/%.dep: %.cc tests.h Makefile | .depends
|
||||
%.dep: %.cc tests.h Makefile
|
||||
$(CXX) $(BEES_CXXFLAGS) -M -MF $@ -MT $(<:.cc=.o) $<
|
||||
|
||||
depends.mk: $(PROGRAMS:%=.depends/%.dep)
|
||||
cat $^ > $@.new
|
||||
mv -f $@.new $@
|
||||
|
||||
include depends.mk
|
||||
include $(PROGRAMS:%=%.dep)
|
||||
|
||||
$(PROGRAMS:%=%.o): %.o: %.cc ../makeflags Makefile
|
||||
$(CXX) $(BEES_CXXFLAGS) -o $@ -c $<
|
||||
|
Loading…
x
Reference in New Issue
Block a user