Commit b1c728db authored by Per Cederqvist's avatar Per Cederqvist

(aux.h): New target.

(MOSTLYCLEANFILES): Added aux.h.
(NODIST_GENOBJS): Added aux.h.
(BUILT_SOURCES): Added aux.h.
(version.incl): Fixed spelling error.
(version-info.c): Ditto.
parent 160c5186
# $Id: Makefile.am,v 1.40 2002/03/29 22:29:49 ceder Exp $
# $Id: Makefile.am,v 1.41 2002/04/06 07:21:28 ceder Exp $
# Copyright (C) 1998-1999, 2001-2002 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -37,7 +37,7 @@ EXTRA_DIST = .cvsignore ChangeLog.1 Magics \
MOSTLYCLEANFILES = .gdbinit call-switch.incl com.h fnc-def-init.incl \
fncdef-no-str-limit.txt prot-a-parse-arg.h version.incl \
prot-a-is-legal-fnc.incl *.da *.bb *.gcov *.bbg \
version-info.c prot-a-parse-arg.c
version-info.c prot-a-parse-arg.c aux.h
INCLUDES = -DDEFAULT_PREFIX='"$(prefix)"' \
-I$(srcdir)/../include \
......@@ -100,7 +100,7 @@ ATOMS = text.c membership.c person.c conference.c session.c admin.c \
regex-match.c aux-items.c debug.c
# These files are needed by all versions of the LysKOM server.
NODIST_GENOBJS = $(NODIST_PROTA)
NODIST_GENOBJS = $(NODIST_PROTA) aux.h
GENOBJS = connections.c log.c $(ATOMS) \
send-async.c server-config.c text-garb.c \
isc-parse.c memory.c $(PROTA) \
......@@ -132,7 +132,7 @@ ENCRYPT = encrypt-passwd.c dbck-cache.c ram-smalloc.c ram-parse.c \
BUILT_SOURCES = prot-a-parse-arg.c version-info.c \
call-switch.incl com.h fnc-def-init.incl \
prot-a-parse-arg.h fncdef-no-str-limit.txt .gdbinit \
version.incl prot-a-is-legal-fnc.incl
version.incl prot-a-is-legal-fnc.incl aux.h
call-switch.incl: call-switch.awk fncdef-no-str-limit.txt
$(AWK) -f $(srcdir)/call-switch.awk fncdef-no-str-limit.txt \
......@@ -163,13 +163,13 @@ fncdef-no-str-limit.txt: fncdef.txt
| sed 's/([^)]*)//g' > fncdef-no-str-limit.txt
version.incl: $(top_srcdir)/versions
echo '/* Do not edit -- automaticaly generated file */' > $@.tmp
echo '/* Do not edit -- automatically generated file */' > $@.tmp
sed -n 's/SERVER-COMPAT-VERSION: //p' $(top_srcdir)/versions >>$@.tmp
echo '/* Do not edit -- automaticaly generated file */' >>$@.tmp
echo '/* Do not edit -- automatically generated file */' >>$@.tmp
mv $@.tmp $@
version-info.c: $(top_srcdir)/versions
echo '/* Do not edit -- automaticaly generated file */' > $@.tmp
echo '/* Do not edit -- automatically generated file */' > $@.tmp
echo '#ifdef HAVE_CONFIG_H' >>$@.tmp
echo '# include <config.h>' >>$@.tmp
echo '#endif' >>$@.tmp
......@@ -187,9 +187,29 @@ version-info.c: $(top_srcdir)/versions
sed -n 's/SERVER-VERSION: \(.*\)/ "\1"/p' \
$(top_srcdir)/versions >>$@.tmp
echo '};' >>$@.tmp
echo '/* Do not edit -- automaticaly generated file */' >>$@.tmp
echo '/* Do not edit -- automatically generated file */' >>$@.tmp
mv $@.tmp $@
aux.h: $(top_srcdir)/run-support/aux-items.conf Makefile
$(RM) $@ $@.tmp
echo '/* Do not edit -- automatically generated file */' >>$@.tmp
echo '#ifndef AUX_H_INCLUDED' >>$@.tmp
echo '#define AUX_H_INCLUDED' >>$@.tmp
echo 'enum aux_no {' >>$@.tmp
LC_ALL=C LC_CTYPE=C LANG=C sed \
-e '/^#/d' \
-e '/^{/,/^}/d' \
-e 's/^\([0-9]*\) : \([a-z\-]*\) .*/aux_\2 \1/' \
-e '/^ *$$/d' \
-e 'y/-/_/' \
< $(top_srcdir)/run-support/aux-items.conf \
| awk '{printf " %-25s = %5s,\n", $$1, $$2}' >>$@.tmp
echo '};' >>$@.tmp
echo '#endif' >>$@.tmp
echo '/* Do not edit -- automatically generated file */' >>$@.tmp
mv $@.tmp $@
.gdbinit:
$(RM) -f .gdbinit
echo handle 13 nostop noprint >.gdbinit
......
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