1SubDir TOP core ; 2 3Build core : global.cpp scope.cpp estring.cpp 4 buffer.cpp list.cpp map.cpp dict.cpp allocator.cpp 5 md5.cpp file.cpp logger.cpp log.cpp configuration.cpp 6 estringlist.cpp entropy.cpp stderrlogger.cpp 7 cache.cpp patriciatree.cpp 8 ; 9 10Build encodings : ustring.cpp ustringlist.cpp ; 11 12PGUSER ?= "" ; 13 14# just for configuration.cpp, we want to propagagate the compile-time 15# settings so they can be used and logged at runtime. 16ObjectDefines configuration.cpp : 17 BINDIR='\"$(BINDIR)\"' 18 SBINDIR='\"$(SBINDIR)\"' 19 MANDIR='\"$(MANDIR)\"' 20 LIBDIR='\"$(LIBDIR)\"' 21 INITDIR='\"$(INITDIR)\"' 22 JAILDIR='\"$(JAILDIR)\"' 23 MESSAGEDIR='\"$(MESSAGEDIR)\"' 24 CONFIGDIR='\"$(CONFIGDIR)\"' 25 PIDFILEDIR='\"$(PIDFILEDIR)\"' 26 LOGFILE='\"$(LOGFILE)\"' 27 LOGFILEMODE='\"$(LOGFILEMODE)\"' 28 DBADDRESS='\"$(DBADDRESS)\"' 29 PGUSER='\"$(PGUSER)\"' 30 AOXUSER='\"$(AOXUSER)\"' 31 AOXGROUP='\"$(AOXGROUP)\"' 32 DBOWNER='\"$(DBOWNER)\"' 33 DBNAME='\"$(DBNAME)\"' 34 DBSCHEMA='\"$(DBSCHEMA)\"' 35 VERSION='\"$(VERSION)\"' ; 36 37# make sure configuration.o is rebuilt when the settings change. a bit hacky. 38NoCare <>Jamsettings ; 39Depends [ FGristFiles configuration.o ] : <>Jamsettings ; 40# and the version 41NoCare <>Jamrules ; 42Depends [ FGristFiles configuration.o ] : <>Jamrules ; 43 44# assumedly, everything which includes this file wants to include the 45# headers in this directory. 46 47HDRS += [ FDirName $(TOP) core ] ; 48 49UseLibrary buffer.cpp : z ; 50