# Makefile for Citadel Server
# Copyright (c) 1987-2022 by Art Cancro and the citadel.org team
-#
-# This is the new and improved version that does not use the GNU Autotools,
-# because it is The Current Year and we aren't trying to build for weird
-# obscure systems anymore.
+#
+# No, we are NOT using the obsolete GNU Autotools. This configure script works
+# well on the Linux operating system (which uses the Linux kernel) and on BSD.
#
# This program is open source software. Use, duplication, and/or
# disclosure are subject to the GNU General Purpose License version 3.
+++ /dev/null
-# config.mk is generated by configure
-CTDLDIR := /root/citadel/citadel
-CFLAGS := -ggdb -DHAVE_OPENSSL -DBUILD_ID=\"v972-1-gc13dec1e4\" -DCTDLDIR=\"/root/citadel/citadel\"
-LDFLAGS := -lssl -lcrypto -lz
########################################################################
-# FIXME do a real build id here
+# The build ID can be generated from git or from the date
########################################################################
CFLAGS=${CFLAGS}' -DBUILD_ID=\"'$(git describe 2>/dev/null || date +%y%03j)'\"'
CFLAGS=${CFLAGS}' -DCTDLDIR=\"'${CTDLDIR}'\"'