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