mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 13:25:45 +02:00
This should help clean up some of the uglier status outputs. Supports: * multi-line table cells * character fills * sparse tables * insert, delete by row and column * vertical separators and not much else. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
41 lines
742 B
Makefile
41 lines
742 B
Makefile
PROGRAMS = \
|
|
chatter \
|
|
crc64 \
|
|
fd \
|
|
limits \
|
|
namedptr \
|
|
path \
|
|
process \
|
|
progress \
|
|
seeker \
|
|
table \
|
|
task \
|
|
|
|
all: test
|
|
|
|
test: $(PROGRAMS:%=%.txt) Makefile
|
|
FORCE:
|
|
|
|
include ../makeflags
|
|
-include ../localconf
|
|
|
|
LIBS = -lcrucible -lpthread
|
|
BEES_LDFLAGS = -L../lib $(LDFLAGS)
|
|
|
|
%.dep: %.cc tests.h Makefile
|
|
$(CXX) $(BEES_CXXFLAGS) -M -MF $@ -MT $(<:.cc=.o) $<
|
|
|
|
include $(PROGRAMS:%=%.dep)
|
|
|
|
$(PROGRAMS:%=%.o): %.o: %.cc ../makeflags Makefile
|
|
$(CXX) $(BEES_CXXFLAGS) -o $@ -c $<
|
|
|
|
$(PROGRAMS): %: %.o ../makeflags Makefile ../lib/libcrucible.a
|
|
$(CXX) $(BEES_CXXFLAGS) $(BEES_LDFLAGS) -o $@ $< $(LIBS)
|
|
|
|
%.txt: % Makefile FORCE
|
|
./$< >$@ 2>&1 || (RC=$$?; cat $@; exit $$RC)
|
|
|
|
clean:
|
|
rm -fv $(PROGRAMS:%=%.o) $(PROGRAMS:%=%.txt) $(PROGRAMS)
|