1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-06-19 06:57:54 +02:00

Compilation: Let the code know about package config

This commit adds support for putting package configuration options into
header files. This is needed to prepare reading config files from /etc.

Signed-off-by: Kai Krakow <kai@kaishome.de>
Dieser Commit ist enthalten in:
Kai Krakow
2018-01-21 03:02:19 +01:00
Ursprung 17e1171464
Commit 8636312cab
3 geänderte Dateien mit 13 neuen und 2 gelöschten Zeilen
+6 -2
Datei anzeigen
@@ -23,8 +23,12 @@ CRUCIBLE_OBJS = \
libcrucible.so: $(CRUCIBLE_OBJS) -luuid
include ../makeflags
include ../Defines.mk
.depends/%.dep: %.cc Makefile
configure.h: configure.h.in
$(TEMPLATE_COMPILER)
.depends/%.dep: %.cc configure.h Makefile
@mkdir -p .depends
$(CXX) $(CXXFLAGS) -M -MF $@ -MT $(<:.cc=.o) $<
@@ -32,7 +36,7 @@ depends.mk: $(CRUCIBLE_OBJS:%.o=.depends/%.dep)
cat $^ > $@.new
mv -f $@.new $@
.version.cc: Makefile ../makeflags *.cc ../include/crucible/*.h
.version.cc: configure.h Makefile ../makeflags *.cc ../include/crucible/*.h
echo "namespace crucible { const char *VERSION = \"$(TAG)\"; }" > $@.new
mv -f $@.new $@