Commit 0ccb2617 authored by Per Cederqvist's avatar Per Cederqvist

PROFILE-LIB-SUFFIX: Used in the name of libraries when profiling.

parent 9e1b0ab0
#
# $Id: sun4os4-defs.make,v 1.16 1992/04/04 17:24:12 ceder Exp $
# $Id: sun4os4-defs.make,v 1.17 1992/04/14 15:42:48 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,7 +22,7 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
# $Id: sun4os4-defs.make,v 1.16 1992/04/04 17:24:12 ceder Exp $
# $Id: sun4os4-defs.make,v 1.17 1992/04/14 15:42:48 ceder Exp $
# This file is included by all Makefiles in the LysKOM hierarchy.
# It gives default values for all variables that is normally used.
# TOPDIR and SCRIPTDIR must be set before this file is included.
......@@ -58,7 +58,7 @@ PIPE = -pipe
#PIPE =
# -h flag makes NULL pointer references generate runtime errors
LDFLAGS = -h -L$(LIBDIR)
LDFLAGS = -h -L$(LIBDIR) $(PROFILE-FLAGS)
# Library for hostname lookup.
# There is a bug in SunOS 4.1.1 that makes it impossible to use -lresolv.
......@@ -72,7 +72,16 @@ LIBRESOLV = -lresolv
LIBIDENT = -lauthuser
CFLAGS = $(INCLUDES) $(OPTIMIZE-FLAGS) $(MISC-CFLAGS) $(PIPE) $(TARGET)
CFLAGS = $(INCLUDES) $(OPTIMIZE-FLAGS) $(MISC-CFLAGS) $(PIPE) $(TARGET) $(PROFILE-FLAGS)
# Are we profiling? PROFILE-FLAGS are sent to CC when compiling and linking.
# PROFILE-LIB-SUFFIX are included in all library names so that we can have
# one profiled and one non-profiled version at the same time. But make sure
# to delete all .o files when switching between profiling and not profiling...
PROFILE-FLAGS = -pg -static
PROFILE-LIB-SUFFIX = -pg
#PROFILE-FLAGS =
#PROFILE-LIB-SUFFIX =
# LysKOM executables that the typical user doesn't use go here.
# (The server, dbck, et c)
......
#
# $Id: Makefile,v 0.12 1991/09/15 10:19:56 linus Exp $
# $Id: Makefile,v 0.13 1992/04/14 15:43:11 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -27,7 +27,7 @@ SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
LIBNAME = libansi.a
LIBNAME = libansi$(PROFILE-LIB-SUFFIX).a
LIBOBJS = strerror.o
......
#
# $Id: Makefile,v 0.10 1992/02/10 02:54:07 linus Exp $
# $Id: Makefile,v 0.11 1992/04/14 15:43:14 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -32,7 +32,8 @@ TARGET = -DCLIENT
LIBOBJS = kom-errno.o misc-parser.o parser.o
INSTALL-HDRS = misc-parser.h parser.h
LIBRARIES = liblyskom-server.a liblyskom-client.a
LIBRARIES = liblyskom-server$(PROFILE-LIB-SUFFIX).a \
liblyskom-client$(PROFILE-LIB-SUFFIX).a
all: $(LIBRARIES)
......@@ -46,22 +47,22 @@ server-dir:
ln -s `echo $(LIBOBJS) $(INSTALL-HDRS) dependencies Topdir.make | \
tr ' ' '\012' | sed 's/.o$$/.c/' | sed 's:^:\.\./:' ` server-dir/
.PHONY: liblyskom-server.a
liblyskom-server.a: server-dir
.PHONY: liblyskom-server$(PROFILE-LIB-SUFFIX).a
liblyskom-server$(PROFILE-LIB-SUFFIX).a: server-dir
(cd server-dir;$(MAKE) $(EXPORTS) -f ../Makefile ../$@ TARGET=-DSERVER)
$(RANLIB) $@
../liblyskom-server.a: $(LIBOBJS)
../liblyskom-server$(PROFILE-LIB-SUFFIX).a: $(LIBOBJS)
$(AR) $(ARFLAGS) $@ $?
.PHONY: liblyskom-client.a
liblyskom-client.a: client-dir
.PHONY: liblyskom-client$(PROFILE-LIB-SUFFIX).a
liblyskom-client$(PROFILE-LIB-SUFFIX).a: client-dir
(cd client-dir;$(MAKE) $(EXPORTS) -f ../Makefile ../$@ TARGET=-DCLIENT)
$(RANLIB) $@
../liblyskom-client.a: $(LIBOBJS)
../liblyskom-client$(PROFILE-LIB-SUFFIX).a: $(LIBOBJS)
$(AR) $(ARFLAGS) $@ $?
......
#
# $Id: Makefile,v 0.11 1991/09/15 10:26:02 linus Exp $
# $Id: Makefile,v 0.12 1992/04/14 15:43:20 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -29,7 +29,7 @@ include $(SCRIPTDIR)/import.make
TARGET = -DCLIENT
LIBNAME = libmisc.a
LIBNAME = libmisc$(PROFILE-LIB-SUFFIX).a
LIBOBJS = pom.o s-collat-tabs.o s-string.o zmalloc.o
......
#
# $Id: Makefile,v 0.23 1992/04/04 17:25:34 ceder Exp $
# $Id: Makefile,v 0.24 1992/04/14 15:43:23 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,7 +22,7 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
# $Id: Makefile,v 0.23 1992/04/04 17:25:34 ceder Exp $
# $Id: Makefile,v 0.24 1992/04/14 15:43:23 ceder Exp $
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
......@@ -39,7 +39,9 @@ HDRS = admin.h isc-parse.h prot-a-output.h async.h isc-interface.h \
# See config/sun4os4-defs.make about LIBRESOLV if you are running SunOS 4.1.1.
LIBS = -lold-isc -lmisc -llyskom-server -lansi $(LIBRESOLV) $(LIBIDENT)
LIBS = -lold-isc$(PROFILE-LIB-SUFFIX) -lmisc$(PROFILE-LIB-SUFFIX) \
-llyskom-server$(PROFILE-LIB-SUFFIX) -lansi$(PROFILE-LIB-SUFFIX) \
$(LIBRESOLV) $(LIBIDENT)
TARGET = -DSERVER
......
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