Commit e87caeac authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(MOSTLYCLEANFILES): Added paths.h.

(AM_CPPFLAGS): Removed the DEFAULT_PREFIX define.  Use paths.h instead.
(sbin_PROGRAMS): Was: bin_PROGRAMS.
(BUILT_SOURCES): Added paths.h.
(.gdbinit): Removed redundant "-f" option to $(RM).
(DEFP): New constant.
(paths.h): New target.
(server-config.o): Added explicit dependency on paths.h.
parent a7bec7cb
# $Id: Makefile.am,v 1.59 2003/08/13 13:31:04 ceder Exp $
# $Id: Makefile.am,v 1.60 2003/08/16 10:51:28 ceder Exp $
# Copyright (C) 1998-1999, 2001-2002 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -38,9 +38,9 @@ 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 aux.h
version-info.c prot-a-parse-arg.c aux.h paths.h
AM_CPPFLAGS = -DDEFAULT_PREFIX='"$(prefix)"' \
AM_CPPFLAGS = \
-I../libraries/libeintr \
-I$(srcdir)/../include \
-I$(srcdir)/../libraries/libansi \
......@@ -53,7 +53,7 @@ AM_CPPFLAGS = -DDEFAULT_PREFIX='"$(prefix)"' \
top_srcdir = @top_srcdir@
bin_PROGRAMS = lyskomd dbck updateLysKOM komrunning splitkomdb
sbin_PROGRAMS = lyskomd dbck updateLysKOM komrunning splitkomdb
check_LIBRARIES = libcheck.a
libcheck_a_SOURCES = local-to-global.c ram-parse.c ram-output.c \
......@@ -150,7 +150,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 aux.h
version.incl prot-a-is-legal-fnc.incl aux.h paths.h
call-switch.incl: call-switch.awk fncdef-no-str-limit.txt
$(AWK) -f $(srcdir)/call-switch.awk fncdef-no-str-limit.txt \
......@@ -230,7 +230,7 @@ aux.h: $(top_srcdir)/run-support/aux-items.conf Makefile
.gdbinit: Makefile
$(RM) -f .gdbinit
$(RM) .gdbinit
echo handle 13 nostop noprint >.gdbinit
echo dir $(top_srcdir)/src/libraries/libcommon >>.gdbinit
echo dir $(top_srcdir)/src/libraries/libansi >>.gdbinit
......@@ -238,6 +238,38 @@ aux.h: $(top_srcdir)/run-support/aux-items.conf Makefile
echo dir $(top_srcdir)/src/libraries/liboop >>.gdbinit
echo dir $(top_srcdir)/src/libraries/libmisc >>.gdbinit
DEFP = $(top_srcdir)/scripts/definepath "$(top_srcdir)" "$(prefix)"
paths.h: $(top_srcdir)/scripts/unprefix $(top_srcdir)/scripts/definepath \
Makefile
$(RM) $@ $@.tmp
echo '/* Do not edit -- automatically generated file */' > $@.tmp
echo '#define DEFAULT_PREFIX "'"$(prefix)"'"' >> $@.tmp
$(DEFP) CONFIG_FILE "$(sysconfdir)/lyskomd.conf" >> $@.tmp
$(DEFP) DATA_FILE "$(dbdir)/lyskomd-data" >> $@.tmp
$(DEFP) BACKUP_FILE "$(dbdir)/lyskomd-backup" >> $@.tmp
$(DEFP) PREV_BACKUP_FILE "$(dbdir)/lyskomd-backup-prev" >> $@.tmp
$(DEFP) LOCK_FILE "$(dbdir)/lyskomd-lock" >> $@.tmp
$(DEFP) TEXT_FILE "$(dbdir)/lyskomd-texts" >> $@.tmp
$(DEFP) NUMBER_FILE "$(dbdir)/number.txt" >> $@.tmp
$(DEFP) NUMBER_FILE_TMP "$(dbdir)/number.tmp" >> $@.tmp
$(DEFP) TEXT_BACKUP_FILE "$(dbdir)/lyskomd-texts-backup" >> $@.tmp
$(DEFP) EXPORT_DIR "$(exportdir)" >> $@.tmp
$(DEFP) LYSKOMD_LOG "$(localstatedir)/lyskomd.log" >> $@.tmp
$(DEFP) LYSKOMD_STATS "$(localstatedir)/lyskomd.stats" >> $@.tmp
$(DEFP) LYSKOMD_PID "$(localstatedir)/run/lyskomd.pid" >> $@.tmp
$(DEFP) MEMORY_USAGE "$(localstatedir)/lyskomd.memory" >> $@.tmp
$(DEFP) AUX_FILE "$(sysconfdir)/aux-items.conf" >> $@.tmp
$(DEFP) STATUS_FILE "$(dbdir)/status" >> $@.tmp
$(DEFP) CONNECTIONS_FILE "$(localstatedir)/lyskomd.clients" >> $@.tmp
$(DEFP) CONNECTIONS_TMP "$(localstatedir)/lyskomd.clnt.tmp">> $@.tmp
$(DEFP) CORE_DIR "$(localstatedir)/lyskomd.cores" >> $@.tmp
$(DEFP) LYSKOMD_PATH "$(sbindir)/lyskomd$(EXEEXT)" >> $@.tmp
$(DEFP) SAVECORE_PATH "$(sbindir)/savecore-lyskom$(EXEEXT)" >> $@.tmp
echo '/* Do not edit -- automatically generated file */' >> $@.tmp
chmod 444 $@.tmp
mv -f $@.tmp $@
check-lyskomd: libcheck.a lyskomd dbck
cd testsuite && $(MAKE) check-lyskomd
......@@ -277,6 +309,7 @@ simple-cache.o: com.h
standalone.o: com.h
text-garb.o: com.h
text.o: com.h
server-config.o: paths.h
connections.o: fnc-def-init.incl call-switch.incl
admin.o: version.incl
......
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