head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	96.02.03.05.11.08;	author ghudson;	state Exp;
branches;
next	1.3;

1.3
date	95.01.13.21.40.20;	author ghudson;	state Exp;
branches;
next	1.2;

1.2
date	94.07.20.19.41.17;	author jtkohl;	state Exp;
branches;
next	1.1;

1.1
date	94.07.20.19.41.05;	author jtkohl;	state Exp;
branches;
next	;


desc
@@


1.4
log
@LEXLIB is no longer necessary.
@
text
@## common makefile fragment
# from Imake.tmpl
SRCTOP=$(srcdir)/$(BUILDTOP)
INCLUDE= $(LOCALINCLUDE) -I$(BUILDTOP)/include -I$(SRCTOP)/include -I$(srcdir)
LINTFLAGS=$(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)
# BYTEORDER needed here since anything can include krb.h
GLOBAL_CDEFS=$(TARGET_CDEFS) $(DBMFLAG) $(SHMFLAG)  $(BYTEORDER) $(SITE_CDEFS)
CFLAGS=$(DBG) $(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)
DEPEND=$(BUILDTOP)/util/makedepend/makedepend


srcdir=
VPATH=$(srcdir)

# from config.Imakefile
BASEDIR=/usr
USRDIR= $(BASEDIR)/kerberos
SVRDIR= $(USRDIR)/etc
DAEMDIR= $(USRDIR)/etc
PROGDIR=$(USRDIR)/bin
LIBDIR= $(USRDIR)/lib
USRLIB= /usr/lib
LINTLIBDIR = /usr/lib/lint
INCLDIR= $(USRDIR)/include
MANDIR= $(USRDIR)/man
### /* KDBDIR has the acl's and the key database */
KDBDIR=$(USRDIR)/database
### /* KLOGDIR has the security related logs */
KLOGDIR=$(USRDIR)/database
SITE_KRB_REALM=error-default-realm
SRVTAB_FILE =/etc/krb-srvtab
### /* this is where krb.realms and krb.conf go. */
CONFDIR=$(LIBDIR)
### /* this is where installation and testing scripts go */
INSTDIR=$(USRDIR)/install

### /*
###  * Set ORGANIZATION to be the desired organization string printed
###  * by the 'kinit' program.  It may have spaces.
###  */
# only used in kuser/Imakefile, kuser/kinit.c
ORGANIZATION=Cygnus Support

### /*
###  * Define NOENCRYPTION if you do not have the DES library.
###  */
### /* #define NOENCRYPTION */

### /*
###  * Define NEED_SETENV if you don't have setenv() in your libc.
###  * (likely for older 4.3 systems and pre-4.3 systems)
###  */
# used in lib/krb/Imakefile
#define NEED_SETENV
SETENVSRCS = setenv.c
SETENVOBJS = setenv.o

### /*
###  * Define TKT_SHMEM if you want to use shared memory for the session
###  * keys in your ticket caches.
###  */
# used in lib/krb/Imakefile, 
# via SHM_FLAG: dest_tkt.c, in_tkt.c, tf_util.c, 
### /* #define TKT_SHMEM */

### if you don't have flock() (ie, posix) then clear this
FLOCK=-DMAIL_USE_FLOCK

### /*
###  * LINTLIBFLAG should be the flag used to tell lint to create a lint
###  * library.  On most BSD systems, this is -C
###  */
LINTLIBFLAG=-C

KRB_LIB=$(BUILDTOP)/lib/krb/libkrb.a
KRB_LIBDEP=$(KRB_LIB)
KRB_LINTLIB=$(BUILDTOP)/lib/krb/llib-lkrb.ln
KADM_LIB=$(BUILDTOP)/lib/kadm/libkadm.a
KADM_LIBDEP=$(KADM_LIB)
ACL_LIB=$(BUILDTOP)/lib/acl/libacl.a
ACL_LIBDEP=$(ACL_LIB)
KSTREAM_LIB=$(BUILDTOP)/lib/kstream/libkstream.a
KSTREAM_LIBDEP=$(KSTREAM_LIB)

DES_LIBDEP=$(BUILDTOP)/lib/des/libdes.a 
DES_LIB=$(DES_LIBDEP) $(BSDLIB)
DES_LINTLIB=$(BUILDTOP)/lib/des/llib-ldes.ln

DBMFLAG=-DNDBM
KDB_LIBDEP=$(BUILDTOP)/lib/kdb/libkdb.a
KDB_LIB=$(BUILDTOP)/lib/kdb/libkdb.a $(LIBNDBM)

## a target should include the line SHMFLAG=-DTKT_SHMEM if they use SHMEM.
### /*
###  * The name of a command which compiles error tables.
###  */
AWK=awk
### /* these are invoked as $(...) foo.et, which works, but could be better */
COMPILE_ET_H= $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=$@@
COMPILE_ET_C= $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=$@@
.SUFFIXES:  .h .c .et .ct

.et.h:
	$(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=$*.h $<

.et.c:
	$(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=$*.c $<

### /*
###  * The name of a command which compiles command tables.
###  */
MAKE_COMMANDS= $(BUILDTOP)/util/ss/mk_cmds
.ct.c:
	if [ $< != $*.ct ]; then \
		cp $< $*.ct; $(MAKE_COMMANDS) $*.ct; rm $*.ct; \
	else \
		$(MAKE_COMMANDS) $*.ct; \
	fi
### /*
###  * Loader argument to get the com_err library
###  */
COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
### /*
###  * Dependency name for COM_ERR, if any
###  */
COM_ERR_DEP = $(COM_ERR)
### /*
###  * Loader argument to get the ss library
###  */
SS_LIB = $(BUILDTOP)/util/ss/libss.a
### /*
###  * Dependency name for SS_LIB, if any
###  */
SS_LIBDEP = $(SS_LIB)

### /* 
###  * Define OLD_COMPAT if you want to be able to link old binaries with
###  * the new library names
###  */ 
# used in lib/des/Imakefile, lib/krb/Imakefile
### /* #define OLD_COMPAT */

### /*
###  * Define DEBUG_LIBS if you want to create versions of the libraries
###  * that have useful debugging information (the default rules will strip
###  * out extra symbols, including debugging symbols, from the symbol
###  * table.)  NOTE:  This only works if you do NOT turn on PROFILED_LIBS
###  * below.
###  * NOTE:  this doesn't turn on the debugging flag for your compiler; do
###  * that with the DBG make variable, below.
###  */
#define DEBUG_LIBS

### /*
###  * Define PROFILED_LIBS if you want to create profiled versions of the
###  * libraries used in Kerberos
###  */
### /* #define PROFILED_LIBS */

### /*
###  * Define PROF_FLAG to be the flag to be passed to your C compiler to
###  * turn on profiling.  For 4.3BSD on a VAX, this should probably be -pg.
###  * For most other systems, it should probably be -p
###  */
### /* #define PROF_FLAG -p */

### /*
###  * The name of a command which builds an object library.
###  */
ARCHIVE= ar cru
### /*
###  * The name of another program needed to post-process the archive.
###  */
RANLIB= ranlib

### /* 
###  * Install commands:  installs a file into the destination tree.
###  * These commands are called with two arguments: the source and the
###  * destination of the install.
###  */
# use install to deal with existing read-only target files.
### /* install a file */
INSTALLFILE=install -c
### /* install a library */ 
INSTALLLIB=install -c
### /* install a program */
INSTALLPROG=install -c
### /* invoke raw install program */
INSTALLRAW=install -c
### /* install a program which should run as root */
INSTALLSUID= echo "FIX UID:"; cp

# /* The name of the target's linker */
LD=ld

# /* The name of the target's assembler */
AS=as

# /* The name of `lint' */
LINT=lint

# /* The name of the C compiler for the target */
CC=gcc

# /* Compile with initialized data read-only [cc -R]
# & shared (if possible) */
CCRO=$(CC)

# /* A command which invokes the C preprocessor */
CPP=$(CC) -E

# /* Debug or optimize? */
DBG=-g -O

# /* Program to index source files */
TAGGER=etags

# /* name of make program */
MAKE=make
# /* delete one or more files/directories/links */

RM=rm -f

# /* rename/move a file */
MV=mv

# /* copy a file */
CP=cp

# /* create a link */
LN=ln -s

# /* print a file or files */
LPR=lpr -p

# /* change mode of a file */
CHMOD=chmod

################### end of config.Imakefile stuff ######################
BISON = `if [ -f $${rootme}/byacc/byacc ] ; \
	    then echo $${rootme}/byacc/byacc ; \
	    else echo byacc ; \
	fi`

FLEX = `if [ -f $${rootme}/flex/flex ] ; \
	then echo $${rootme}/flex/flex ; \
	else echo flex ; fi`

@


1.3
log
@Use install instead of cp, since there may be read-only existing
target files.
@
text
@a248 2
LEXLIB=-ll

@


1.2
log
@remove spurious space
@
text
@d181 1
a181 1
# since fix-prot sets the modes, never use install at all.
d183 1
a183 1
INSTALLFILE= cp
d185 1
a185 1
INSTALLLIB= cp 
d187 1
a187 1
INSTALLPROG= cp 
d189 1
a189 1
INSTALLRAW= cp 
@


1.1
log
@Initial revision
@
text
@d166 1
a166 1
 
@
