mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-03 19:50:34 +01:00 
			
		
		
		
	We need a mechanism for distributing work across processor cores and disks. Task implements a simple FIFO/LIFO queue model for executing closures. Some locking primitives are included (mutex and barrier). Signed-off-by: Zygo Blaxell <bees@furryterror.org>
		
			
				
	
	
		
			36 lines
		
	
	
		
			646 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			646 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
PROGRAMS = \
 | 
						|
	chatter \
 | 
						|
	crc64 \
 | 
						|
	fd \
 | 
						|
	limits \
 | 
						|
	path \
 | 
						|
	process \
 | 
						|
	task \
 | 
						|
 | 
						|
all: test
 | 
						|
 | 
						|
test: $(PROGRAMS)
 | 
						|
	set -x; for prog in $(PROGRAMS); do ./$$prog || exit 1; done
 | 
						|
 | 
						|
include ../makeflags
 | 
						|
 | 
						|
LIBS = -lcrucible -lpthread
 | 
						|
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
 |