Commit d5392cd4 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Build in build information data, spit out into syslog at startup.

parent 8d0caae2
......@@ -24,9 +24,9 @@ ifeq ($(EVENTSYS),1)
tmcd: tmcd.c ${TMCDLIBS} decls.h
tmcd: tmcd.c ${TMCDLIBS} decls.h version.o
$(CC) $(CFLAGS) $(TMCDCFLAGS) -o tmcd $< \
$(LFLAGS) -L/usr/local/lib/mysql -lmysqlclient \
version.o $(LFLAGS) -L/usr/local/lib/mysql -lmysqlclient \
tmcc: tmcc.o
......@@ -37,6 +37,9 @@ findif: findif.o
tmcc.o: tmcc.c decls.h
version.c: tmcd.c
echo >$@ "char build_info[] = \"Built `date +%d-%b-%Y` by `id -nu`@`hostname | sed 's/\..*//'`:`pwd`\";"
install: all
install: $(INSTALL_SBINDIR)/tmcd \
......@@ -56,7 +59,5 @@ ${OBJDIR}/event/lib/%:
cd ${OBJDIR}/lib/tbdb && gmake $<
rm -f *.o core tmcd tmcc findif
rm -f *.o core tmcd tmcc findif version.c
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment