mirror of
https://github.com/Zygo/bees.git
synced 2025-06-15 17:26:15 +02:00
bees: remove local cruft, throw at github
This commit is contained in:
36
test/Makefile
Normal file
36
test/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
PROGRAMS = \
|
||||
chatter \
|
||||
crc64 \
|
||||
execpipe \
|
||||
fd \
|
||||
interp \
|
||||
limits \
|
||||
path \
|
||||
process \
|
||||
|
||||
all: test
|
||||
|
||||
test: $(PROGRAMS)
|
||||
set -x; for prog in $(PROGRAMS); do ./$$prog || exit 1; done
|
||||
|
||||
include ../makeflags
|
||||
|
||||
LIBS = -lcrucible
|
||||
LDFLAGS = -L../lib -Wl,-rpath=$(shell realpath ../lib)
|
||||
|
||||
depends.mk: *.cc
|
||||
for x in *.cc; do $(CXX) $(CXXFLAGS) -M "$$x"; done >> depends.mk.new
|
||||
mv -fv depends.mk.new depends.mk
|
||||
|
||||
-include depends.mk
|
||||
|
||||
%.o: %.cc %.h ../makeflags
|
||||
-echo "Implicit rule %.o: %.cc" >&2
|
||||
$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
|
||||
|
||||
%: %.o ../makeflags
|
||||
-echo "Implicit rule %: %.o" >&2
|
||||
$(CXX) $(CXXFLAGS) -o "$@" "$<" $(LDFLAGS) $(LIBS)
|
||||
|
||||
clean:
|
||||
-rm -fv *.o
|
Reference in New Issue
Block a user