mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 04:00:36 +01:00 
			
		
		
		
	Reorder and reformat some arguments so it looks more streamlined during the build process. Signed-off-by: Kai Krakow <kai@kaishome.de>
		
			
				
	
	
		
			46 lines
		
	
	
		
			840 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			840 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
TAG := $(shell git describe --always --dirty || echo UNKNOWN)
 | 
						|
 | 
						|
default: libcrucible.so
 | 
						|
%.so: Makefile
 | 
						|
 | 
						|
CRUCIBLE_OBJS = \
 | 
						|
	chatter.o \
 | 
						|
	cleanup.o \
 | 
						|
	crc64.o \
 | 
						|
	error.o \
 | 
						|
	extentwalker.o \
 | 
						|
	fd.o \
 | 
						|
	fs.o \
 | 
						|
	ntoa.o \
 | 
						|
	path.o \
 | 
						|
	process.o \
 | 
						|
	string.o \
 | 
						|
	task.o \
 | 
						|
	time.o \
 | 
						|
	uuid.o \
 | 
						|
	.version.o \
 | 
						|
 | 
						|
libcrucible.so: $(CRUCIBLE_OBJS) -luuid
 | 
						|
 | 
						|
include ../makeflags
 | 
						|
 | 
						|
.depends/%.dep: %.cc Makefile
 | 
						|
	@mkdir -p .depends
 | 
						|
	$(CXX) $(CXXFLAGS) -M -MF $@ -MT $(<:.cc=.o) $<
 | 
						|
 | 
						|
depends.mk: $(CRUCIBLE_OBJS:%.o=.depends/%.dep)
 | 
						|
	cat $^ > $@.new
 | 
						|
	mv -f $@.new $@
 | 
						|
 | 
						|
.version.cc: Makefile ../makeflags *.cc ../include/crucible/*.h
 | 
						|
	echo "namespace crucible { const char *VERSION = \"$(TAG)\"; }" > $@.new
 | 
						|
	mv -f $@.new $@
 | 
						|
 | 
						|
include depends.mk
 | 
						|
 | 
						|
%.o: %.cc ../makeflags
 | 
						|
	$(CXX) $(CXXFLAGS) -fPIC -o $@ -c $<
 | 
						|
 | 
						|
%.so:
 | 
						|
	$(CXX) $(LDFLAGS) -fPIC -shared -Wl,-soname,$@ -o $@ $^
 |