Commit e3c68a65 authored by Per Cederqvist's avatar Per Cederqvist

Created Makefile.src from Makefile.in.

First checkin as Makefile.src.
parent b407d522
#
# $Id: Makefile.src,v 1.6 1993/11/22 18:34:37 ceder Exp $
# $Id: Makefile.src,v 1.7 1994/03/03 00:35:45 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -23,33 +22,19 @@
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
srcdir = @srcdir@
VPATH = @srcdir@
@STDLYSKOM@
SUBDIRS = doc scripts src # config # junk
SERVER-VER = 1.5
all: msg includes libraries binaries end-msg
LK_STD
[SUBDIRS = doc scripts src # config # junk
SERVER-VER = 1.6
@ALL_DESCEND@
all: msg includes libraries binaries end-msg]
doincludes:;
dolibraries:;
dobinaries:;
doinstall:;
dodepend:;
dopure: dorealclean
$(RM) configure
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN) config.status
LK_DESCEND
define([dopure],[LK_CMD([$(RM) configure])])
define([dodistclean],dnl
[[ $(RM) $(GENERIC-DISTCLEAN) config.status
$(RM) lib/lib*.a
rmdir lib
doclean: domostlyclean;
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
rmdir lib]])
[
includes: $(INCLUDEDIR)
depend: $(INCLUDEDIR) msg includes
libraries: lib
......@@ -57,50 +42,57 @@ libraries: lib
lib:
mkdir lib
configure: configure.in
autoconf
$(srcdir)/configure: configure.in
autoconf $(srcdir)/configure.in > $(srcdir)/configure
distribution: distclean configure
find . -name '#*#' -print
.PHONY: distribution
distribution: $(srcdir)/configure
[ ! -f $(srcdir)/Makefile ]
find $(srcdir) -name '#*#' -print
-$(RM) -r lyskom-$(SERVER-VER)
$(MKDIR) lyskom-$(SERVER-VER)
cp README-serverrelease lyskom-$(SERVER-VER)/README
cp COPYING INSTALL configure configure.in Build Makefile.in \
lyskom-$(SERVER-VER)/
cp $(srcdir)/README-serverrelease lyskom-$(SERVER-VER)/README
for i in COPYING INSTALL configure configure.in Build Makefile.in ; \
do cp $(srcdir)/$$i lyskom-$(SERVER-VER)/; done
$(MKDIR) lyskom-$(SERVER-VER)/src
cp src/Makefile.in lyskom-$(SERVER-VER)/src/
cp $(srcdir)/src/Makefile.in lyskom-$(SERVER-VER)/src/
$(MKDIR) lyskom-$(SERVER-VER)/src/libraries
cp src/libraries/Makefile.in lyskom-$(SERVER-VER)/src/libraries/
cp $(srcdir)/src/libraries/Makefile.in \
lyskom-$(SERVER-VER)/src/libraries/
$(MKDIR) lyskom-$(SERVER-VER)/doc
for i in ADMINISTRATION Makefile.in misc_items prot-A.txt \
server-async.extend server.extend what-is-unread.swe; \
server-config.extend \
do \
cp doc/$$i lyskom-$(SERVER-VER)/doc/$i; \
cp $(srcdir)/doc/$$i lyskom-$(SERVER-VER)/doc/$i; \
done
cp -r doc/man lyskom-$(SERVER-VER)/doc/man
cp -r scripts lyskom-$(SERVER-VER)/scripts
cp -r $(srcdir)/doc/man lyskom-$(SERVER-VER)/doc/man
cp -r $(srcdir)/scripts lyskom-$(SERVER-VER)/scripts
# Nothing in scripts should be necessary!
$(RM) lyskom-$(SERVER-VER)/scripts/import.make
cp -r run-support lyskom-$(SERVER-VER)/run-support
cp -r src/libraries/libansi lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/libcommon lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/libisc-new lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/libmisc lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/regex lyskom-$(SERVER-VER)/src/libraries
cp -r src/server lyskom-$(SERVER-VER)/src
cp -r src/include lyskom-$(SERVER-VER)/src/include
cp -r $(srcdir)/run-support lyskom-$(SERVER-VER)/run-support
if i in libansi libcommon libisc-new libmisc regex ; do \
cp -r $(srcdir)/src/libraries/$$i \
lyskom-$(SERVER-VER)/src/libraries \
|| exit 1 ; \
done
cp -r $(srcdir)/src/server lyskom-$(SERVER-VER)/src
cp -r $(srcdir)/src/include lyskom-$(SERVER-VER)/src/include
$(RM) -r lyskom-$(SERVER-VER)/src/include/ansi
cp -r db-crypt lyskom-$(SERVER-VER)
cp -r db-nocrypt lyskom-$(SERVER-VER)
cp -r $(srcdir)/db-crypt lyskom-$(SERVER-VER)
cp -r $(srcdir)/db-nocrypt lyskom-$(SERVER-VER)
find lyskom-$(SERVER-VER) -name CVS -print -exec rm -rf "{}" \; -prune
tar cvf lyskom-$(SERVER-VER).tar lyskom-$(SERVER-VER)
$(RM) lyskom-$(SERVER-VER).tar.gz
gzip lyskom-$(SERVER-VER).tar
gzip -9v lyskom-$(SERVER-VER).tar
$(RM) -r lyskom-$(SERVER-VER)
.PHONY: msg
msg:
@date
@echo
.PHONY: end-msg
end-msg:
@echo
@echo Finished at
......@@ -108,3 +100,4 @@ end-msg:
$(INCLUDEDIR):
mkdir $(INCLUDEDIR)
]
#
# $Id: Makefile.src,v 1.2 1993/10/10 11:38:33 ceder Exp $
# $Id: Makefile.src,v 1.3 1994/03/03 00:35:54 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,26 +22,6 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
srcdir = @srcdir@
VPATH = @srcdir@
SUBDIRS = man
all:;
depend:;
includes:;
libraries:;
binaries:;
@CLEAN@
@INSTALL_DESCEND@
doinstall:;
dopure: dorealclean;
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean;
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
LK_STD
[SUBDIRS = man]
LK_DESCEND
#
# $Id: Makefile.src,v 1.3 1994/02/24 10:38:51 ceder Exp $
# $Id: Makefile.src,v 1.4 1994/03/03 00:36:05 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,35 +22,25 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
@STDLYSKOM@
man5dir = \$(prefix)/man/man5\\
man8dir = \$(prefix)/man/man8\\
man5ext = .5\\
man8ext = .8\\
LK_STD
[
SUBDIRS =
man5dir = $(prefix)/man/man5
man8dir = $(prefix)/man/man8
man5ext = .5
man8ext = .8
# List of man pages in the various sections to install
MAN5 = lyskom
MAN8 = dbck lyskomd updateLysKOM
all:;
depend:;
@CLEAN@
dopure: dorealclean
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
install:
-for i in $(MAN5); \
]
define([doinstall],dnl
[[ -for i in $(MAN5); \
do \
$(INSTALL_DATA) $$i.5 $(man5dir)/$$i.$(man5ext); \
done
-for i in $(MAN8); \
do \
$(INSTALL_DATA) $$i.8 $(man8dir)/$$i.$(man8ext); \
done
done]])dnl
LK_DESCEND
#
# $Id: Makefile.src,v 1.2 1993/10/10 11:38:46 ceder Exp $
# $Id: Makefile.src,v 1.3 1994/03/03 00:36:14 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,23 +22,6 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
srcdir = @srcdir@
VPATH = @srcdir@
all:;
depend:;
install:;
includes:;
libraries:;
binaries:;
@CLEAN@
dopure: dorealclean
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean;
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
LK_STD
[SUBDIRS=]
LK_DESCEND
#
# $Id: Makefile.src,v 1.2 1993/10/10 11:38:53 ceder Exp $
# $Id: Makefile.src,v 1.3 1994/03/03 00:36:25 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,26 +22,6 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
srcdir = @srcdir@
VPATH = @srcdir@
@STDLYSKOM@
SUBDIRS = include libraries server # komutils clients
all: includes libraries binaries
@ALL_DESCEND@
doincludes:;
dolibraries:;
dobinaries:;
doinstall:;
dodepend:;
dopure: dorealclean
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean;
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
LK_STD
[SUBDIRS = include libraries server]
LK_DESCEND
#
# $Id: Makefile.src,v 1.2 1993/10/10 11:39:03 ceder Exp $
# $Id: Makefile.src,v 1.3 1994/03/03 00:36:34 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,37 +22,8 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
srcdir = @srcdir@
VPATH = @srcdir@
@STDLYSKOM@
SUBDIRS = server # ansi
INSTALL-HDRS = compiler.h debug.h kom-types.h config.h kom-errno.h \
misc-types.h services.h rcs.h
all: includes libraries binaries
libraries:;
binaries:;
@INCLUDES_DESCEND@
doincludes:
for i in $(INSTALL-HDRS) ; \
do \
( cmp $(srcdir)/$$i $(INCLUDEDIR)/$$i 2>/dev/null ) \
|| cp $(srcdir)/$$i $(INCLUDEDIR)/$$i; \
done;
@CLEAN@
dopure: dorealclean
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean;
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
depend:;
LK_STD
[SUBDIRS = server]
LK_INSTALL_HDRS([compiler.h debug.h kom-types.h config.h kom-errno.h dnl
misc-types.h services.h rcs.h])
LK_DESCEND
#
# $Id: Makefile.src,v 1.2 1993/10/10 11:39:11 ceder Exp $
# $Id: Makefile.src,v 1.3 1994/03/03 00:36:44 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,34 +22,6 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
srcdir = @srcdir@
VPATH = @srcdir@
@STDLYSKOM@
INSTALL-HDRS = smalloc.h
all: includes libraries binaries
libraries:;
binaries:;
.PHONY : includes
includes:
if [ ! -d $(INCLUDEDIR)/server ] ;then \
$(MKDIR) $(INCLUDEDIR)/server; \
fi
for i in $(INSTALL-HDRS);\
do \
( cmp $(srcdir)/$$i $(INCLUDEDIR)/server/$$i 2>/dev/null ) \
|| cp $(srcdir)/$$i $(INCLUDEDIR)/server/$$i; \
done
@CLEAN@
depend:;
dopure: dorealclean
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean;
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
LK_STD
LK_INSTALL_HDRS([smalloc.h],[/server])
LK_DESCEND
VPATH = @srcdir@
SUBMAKEFLAGS = MAKE='${MAKE}' OPTFLAGS='${OPTFLAGS}'
# This target is used by tty-client.
all: libclient-sup.a liblyskom-client.a libmisc.a
.PHONY: libclient-sup.a liblyskom-client.a libmisc.a
libclient-sup.a:
cd libclient; ${MAKE} -f client-Makefile ${SUBMAKEFLAGS}
liblyskom-client.a:
cd libcommon; ${MAKE} -f client-Makefile ${SUBMAKEFLAGS}
libmisc.a:
cd libmisc; ${MAKE} -f client-Makefile ${SUBMAKEFLAGS}
# The remaining of the Makefile is used by the server.
@STDLYSKOM@
SUBDIRS = libisc-new libansi regex libcommon libmisc
@ALL_DESCEND@
doincludes:;
dolibraries:;
dobinaries:;
doinstall:;
dodepend:;
dopure: dorealclean
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean;
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
#
# $Id: Makefile.src,v 1.6 1994/03/03 00:36:52 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
#
# LysKOM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# LysKOM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with LysKOM; see the file COPYING. If not, write to
# Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
# or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
# MA 02139, USA.
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
LK_STD
[SUBDIRS = libisc-new libansi regex libcommon libmisc]
LK_DESCEND
#
# $Id: Makefile.src,v 1.3 1993/10/10 22:33:52 ceder Exp $
# $Id: Makefile.src,v 1.4 1994/03/03 00:37:01 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,43 +22,10 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
srcdir = @srcdir@
VPATH = @srcdir@
@STDLYSKOM@
LIBNAME = libansi$(PROFILE-LIB-SUFFIX).a
LIBOBJS = @LIBOBJS@ empty.o
INSTALL-HDRS = tmp-difftime.h
all: $(LIBNAME)
$(LIBNAME): $(LIBOBJS)
$(AR) $(ARFLAGS) $(LIBNAME) $?
$(RANLIB) $(LIBNAME)
include $(SCRIPTDIR)/install-includes.make
libraries: $(LIBNAME)
$(RM) $(LIBDIR)/$(LIBNAME)
cp $(LIBNAME) $(LIBDIR)/$(LIBNAME)
$(TOUCHLIB) $(LIBDIR)/$(LIBNAME)
binaries:;
@CLEAN@
dopure: dorealclean
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean;
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
# Recreate the Makefile
include $(SCRIPTDIR)/Single-depend.make
tags:
etags -t *.[hc]
include dependencies
LK_STD
LK_INSTALL_HDRS(tmp-difftime.h)
LK_STD_LIB([libansi$(PROFILE-LIB-SUFFIX).a],[@LIBOBJS@ empty.o])
LK_ALL_C_DEPEND
LK_DESCEND
[tags:
etags -t *.[hc]]
#
# $Id: Makefile.src,v 1.2 1993/10/10 11:39:38 ceder Exp $
# $Id: Makefile.src,v 1.3 1994/03/03 00:37:10 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,42 +22,11 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
srcdir = @srcdir@
VPATH = @srcdir@
@STDLYSKOM@
LIBOBJS = kom-errno.o misc-parser.o parser.o
INSTALL-HDRS = misc-parser.h parser.h
LIBRARIES = liblyskom-server$(PROFILE-LIB-SUFFIX).a
all: $(LIBRARIES)
liblyskom-server$(PROFILE-LIB-SUFFIX).a: $(LIBOBJS)
$(AR) $(ARFLAGS) $@ $?
$(RANLIB) $@
@CLEAN@
dopure: dorealclean
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
libraries: liblyskom-server$(PROFILE-LIB-SUFFIX).a
(cd $(LIBDIR); $(RM) $(LIBRARIES))
cp $(LIBRARIES) $(LIBDIR)
(cd $(LIBDIR); $(TOUCHLIB) $(LIBRARIES))
include $(SCRIPTDIR)/install-includes.make
binaries:;
tags:
etags -t $(INCLUDEDIR)/*.h *.[hc]
# Recreate the Makefile from Makefile
include $(SCRIPTDIR)/Single-depend.make
include dependencies
LK_STD
LK_STD_LIBS([liblyskom-server$(PROFILE-LIB-SUFFIX).a],
[kom-errno.o misc-parser.o parser.o])
LK_INSTALL_HDRS([misc-parser.h parser.h])
LK_ALL_C_DEPEND
LK_DESCEND
[tags:
etags -t $(INCLUDEDIR)/*.h *.[hc]]
#
# $Id: Makefile.src,v 1.2 1993/10/10 11:39:46 ceder Exp $
# $Id: Makefile.src,v 1.3 1994/03/03 00:37:21 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,24 +22,6 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
srcdir = @srcdir@
VPATH = @srcdir@
@STDLYSKOM@
SUBDIRS = src
all: includes libraries binaries
@ALL_DESCEND@
doincludes:;
dolibraries:;
dobinaries:;
doinstall:;
dodepend:;
dopure: dorealclean
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean;
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
LK_STD
[SUBDIRS = src]
LK_DESCEND
......@@ -7,56 +7,15 @@
#
#
#
srcdir = @srcdir@
VPATH = @srcdir@
@STDLYSKOM@
SOURCES=isc_event.c isc_session.c isc_abort.c isc_alloc.c isc_master.c\
isc_output.c isc_queue.c isc_message.c isc_handler.c\
isc_stdout.c isc_socket.c isc_tcp.c isc_udp.c printf.c
LIBOBJS=isc_event.o isc_session.o isc_abort.o isc_alloc.o isc_master.o\
LK_STD
LK_STD_LIB([libisc-new$(PROFILE-LIB-SUFFIX).a],
[isc_event.o isc_session.o isc_abort.o isc_alloc.o isc_master.o\
isc_output.o isc_queue.o isc_message.o isc_handler.o\
isc_stdout.o isc_socket.o isc_tcp.o isc_udp.o printf.o
LIBNAME = libisc-new$(PROFILE-LIB-SUFFIX).a
INSTALL-HDRS = isc.h
all: $(LIBNAME)
binaries:;
libraries: $(LIBDIR)/$(LIBNAME)
includes:
( cmp $(srcdir)/isc.h $(INCLUDEDIR)/isc-new.h 2>/dev/null ) \
|| ( $(RM) $(INCLUDEDIR)/isc-new.h; \
cp $(srcdir)/isc.h $(INCLUDEDIR)/isc-new.h; \
chmod a-w $(INCLUDEDIR)/isc-new.h ) \
$(LIBDIR)/$(LIBNAME): $(LIBNAME)
$(RM) $(LIBDIR)/$(LIBNAME)
cp $(LIBNAME) $(LIBDIR)/$(LIBNAME)
$(TOUCHLIB) $(LIBDIR)/$(LIBNAME)
tags:
etags -t *.[hc]
@CLEAN@
dopure: dorealclean
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
include $(SCRIPTDIR)/Single-depend.make
include dependencies
$(LIBNAME): $(LIBOBJS)
$(AR) $(ARFLAGS) $(LIBNAME) $?
$(RANLIB) $(LIBNAME)