mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 13:25:45 +02:00
openat2 allows closing more TOCTOU holes, but we can only use it when the kernel supports it. This should disappear seamlessly when libc implements the function. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
45 lines
674 B
Makefile
45 lines
674 B
Makefile
default: libcrucible.a
|
|
%.a: Makefile
|
|
|
|
CRUCIBLE_OBJS = \
|
|
bytevector.o \
|
|
btrfs-tree.o \
|
|
chatter.o \
|
|
city.o \
|
|
cleanup.o \
|
|
crc64.o \
|
|
error.o \
|
|
extentwalker.o \
|
|
fd.o \
|
|
fs.o \
|
|
multilock.o \
|
|
ntoa.o \
|
|
openat2.o \
|
|
path.o \
|
|
process.o \
|
|
string.o \
|
|
table.o \
|
|
task.o \
|
|
time.o \
|
|
uname.o \
|
|
|
|
include ../makeflags
|
|
-include ../localconf
|
|
include ../Defines.mk
|
|
|
|
BEES_LDFLAGS = $(LDFLAGS)
|
|
|
|
configure.h: configure.h.in
|
|
$(TEMPLATE_COMPILER)
|
|
|
|
%.dep: %.cc configure.h Makefile
|
|
$(CXX) $(BEES_CXXFLAGS) -M -MF $@ -MT $(<:.cc=.o) $<
|
|
|
|
include $(CRUCIBLE_OBJS:%.o=%.dep)
|
|
|
|
%.o: %.cc ../makeflags
|
|
$(CXX) $(BEES_CXXFLAGS) -o $@ -c $<
|
|
|
|
libcrucible.a: $(CRUCIBLE_OBJS)
|
|
$(AR) rcs $@ $^
|