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
|
LIBS = -lcrucible -lpthread
|
||||||
BEES_LDFLAGS = -L../lib $(LDFLAGS)
|
BEES_LDFLAGS = -L../lib $(LDFLAGS)
|
||||||
|
|
||||||
.depends:
|
%.dep: %.cc tests.h Makefile
|
||||||
mkdir -p $@
|
|
||||||
|
|
||||||
.depends/%.dep: %.cc tests.h Makefile | .depends
|
|
||||||
$(CXX) $(BEES_CXXFLAGS) -M -MF $@ -MT $(<:.cc=.o) $<
|
$(CXX) $(BEES_CXXFLAGS) -M -MF $@ -MT $(<:.cc=.o) $<
|
||||||
|
|
||||||
depends.mk: $(PROGRAMS:%=.depends/%.dep)
|
include $(PROGRAMS:%=%.dep)
|
||||||
cat $^ > $@.new
|
|
||||||
mv -f $@.new $@
|
|
||||||
|
|
||||||
include depends.mk
|
|
||||||
|
|
||||||
$(PROGRAMS:%=%.o): %.o: %.cc ../makeflags Makefile
|
$(PROGRAMS:%=%.o): %.o: %.cc ../makeflags Makefile
|
||||||
$(CXX) $(BEES_CXXFLAGS) -o $@ -c $<
|
$(CXX) $(BEES_CXXFLAGS) -o $@ -c $<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user