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

(server-config.o): Define DEFAULT_PREFIX when compiling it.

(SRCS, *_SRCS): Removed. No longer used.
Various other fixes.
parent 10929c3a
#
# $Id: Makefile.src,v 1.10 1994/03/03 00:37:57 ceder Exp $
# $Id: Makefile.src,v 1.11 1994/03/05 17:27:49 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -23,16 +23,6 @@
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
LK_STD
ifelse( # These are not used, but let's keep them here. Maybe they
# turn out to be good for something.
HDRS = admin.h isc-parse.h prot-a-output.h async.h isc-interface.h \
prot-a-parse.h cache.h tmp-limits.h prot-a-send-async.h connections.h \
log.h prot-a.h dbck-cache.h lyskomd.h ram-output.h disk-cache.h \
manipulate.h ram-parse.h end-of-atomic.h memory.h send-async.h exp.h \
minmax.h internal-connections.h mux-parse.h \
internal-services.h mux.h text-garb.h \
version.incl cache-node.h conf-file.h param.h
)
[
LIBS = $(LIBDIR)/libisc-new$(PROFILE-LIB-SUFFIX).a \
$(LIBDIR)/libmisc$(PROFILE-LIB-SUFFIX).a \
......@@ -44,18 +34,12 @@ LIBS = $(LIBDIR)/libisc-new$(PROFILE-LIB-SUFFIX).a \
PROTA = prot-a-output.o prot-a-parse-arg.o prot-a-parse.o prot-a.o \
prot-a-send-async.o
PROTA_SRCS = prot-a-output.c prot-a-parse-arg.c prot-a-parse.c prot-a.c \
prot-a-send-async.c
MUX = mux.o mux-parse.o
MUX_SRCS = mux.c mux-parse.c
# Implementations of the atomic calls.
ATOMS = text.o membership.o person.o conference.o session.o admin.o \
regex-match.o
ATOMS_SRCS = text.c membership.c person.c conference.c session.c admin.c \
regex-match.o
# These files are needed by all versions of the LysKOM server.
GENOBJS = connections.o log.o $(ATOMS) \
......@@ -65,31 +49,21 @@ GENOBJS = connections.o log.o $(ATOMS) \
internal-connections.o rfc931.o isc-malloc.o \
conf-file.o
GEN_SRCS = connections.c log.c $(ATOMS_SRCS) \
kom-types.c \
send-async.c server-config.c text-garb.c \
isc-parse.c memory.c $(PROTA_SRCS) $(MUX_SRCS) \
internal-connections.c rfc931.c isc-malloc.c \
conf-file.c
# Files for lyskomd.
DISKOBJS = ramkomd.o ram-smalloc.o simple-cache.o ram-parse.o ram-output.o \
disk-end-of-atomic.o cache-node.o string-malloc.o
DISK_SRCS = ramkomd.c ram-smalloc.c simple-cache.c ram-parse.c ram-output.c \
disk-end-of-atomic.c cache-node.c string-malloc.c
# Files for dbck.
DBCK = dbck.o dbck-cache.o ram-smalloc.o ram-parse.o server-config.o\
kom-types.o\
ram-output.o memory.o conf-file.o
DBCK_SRCS = dbck.c dbck-cache.c ram-smalloc.c ram-parse.c server-config.c\
kom-types.c\
ram-output.c memory.c conf-file.c
# Files for encrypt (a program to transform the database from unencrypted
# apasswords to encrypted). No longer supported.
ENCRYPT = encrypt-passwd.o dbck-cache.o ram-smalloc.o ram-parse.o
ENCRYPT = encrypt-passwd.o dbck-cache.o ram-smalloc.o ram-parse.o \
server-config.o\
kom-types.o\
ram-output.o memory.o
......@@ -100,8 +74,6 @@ SPECIALS = call-switch.incl com.h fnc-def-init.incl \
prot-a-parse-arg.h fncdef-no-str-limit.txt .gdbinit \
$(C_SPECIALS)
SRCS = $(GEN_SRCS) $(RAM_SRCS) $(DISK_SRCS) $(LYS_SRCS) $(DBCK_SRCS)
PROGRAMS = lyskomd dbck
all binaries: $(PROGRAMS)
......@@ -147,14 +119,6 @@ fncdef-no-str-limit.txt: fncdef.txt
echo dir $(TOPDIR)/src/libraries/libisc >>.gdbinit
echo dir $(TOPDIR)/src/libraries/libmisc >>.gdbinit
install: $(PROGRAMS)
echo Server not installed.
# cp lyskomd $(DESTDIR)/ramkomd # The utilites wants ramkomd.
# cp dbck $(DESTDIR)/
# strip $(DESTDIR)/dbck
# Don't strip ramkomd - we want debugging info!
tags:
$(RM) TAGS
etags -t $(INCLUDEDIR)/*.h *.h \
......@@ -163,8 +127,22 @@ tags:
*.c \
$(TOPDIR)/src/libraries/libisc-new/src/*.c \
$(TOPDIR)/src/libraries/lib*/*.c
server-config.o:
$(CC) -c $(CPPFLAGS) -DDEFAULT_PREFIX='"$(prefix)"' $(ALL_CFLAGS) $<
]
LK_INSTALL_HDRS([com.h])
define([preinstall],[[$(PROGRAMS)]])dnl
define([doinstall],
[[ echo Server not installed.
# cp lyskomd $(DESTDIR)/ramkomd # The utilites wants ramkomd.
# cp dbck $(DESTDIR)/
# strip $(DESTDIR)/dbck
# Don't strip ramkomd - we want debugging info!
]])dnl end of doinstall
dnl
define([prebinaries],[[$(PROGRAMS)]])dnl
dnl
LK_INSTALL_BUILT_HDRS([com.h])
LK_ALL_C_DEPEND
define([predepend],[[$(SPECIALS)]])])dnl
LK_DESCEND
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