summaryrefslogtreecommitdiffstats
path: root/src/krb524/Makefile.in
blob: f84703f7f93250d9f02050cd459bd5b6508a3a09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Copyright 1994 by OpenVision Technologies, Inc.
# 
# Permission to use, copy, modify, distribute, and sell this software
# and its documentation for any purpose is hereby granted without fee,
# provided that the above copyright notice appears in all copies and
# that both that copyright notice and this permission notice appear in
# supporting documentation, and that the name of OpenVision not be used
# in advertising or publicity pertaining to distribution of the software
# without specific, written prior permission. OpenVision makes no
# representations about the suitability of this software for any
# purpose.  It is provided "as is" without express or implied warranty.
# 
# OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# 
# $Id$

CFLAGS = $(CCOPTS) -DUSE_MASTER  $(DEFS) $(LOCALINCLUDE)
LDFLAGS = -g

COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
DBMLIB=

all::

KRB4_LIB = @KRB4_LIB@

KDBLIB=$(TOPLIBD)/libkdb5.a 
KDBDEPLIB=$(TOPLIBD)/libkdb5.a 

KLIB = libkrb524.a $(TOPLIBD)/libkrb5.a $(KRB4_LIB) $(TOPLIBD)/libcrypto.a \
	$(COMERRLIB) $(DBMLIB) 
DEPKLIB = libkrb524.a $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a \
	$(COMERRLIB) $(DBMLIB)

LOCALINCLUDE= -I$(SRCTOP)/include/kerberosIV -I$(BUILDTOP)/include/kerberosIV \
	-I. -I$(srcdir)

# Library sources
SRCS	= conv_creds.c conv_princ.c conv_tkt.c cnv_tkt_skey.c \
	encode.c misc.c globals.c sendmsg.c krb524_err.et
OBJS	= conv_creds.o conv_princ.o conv_tkt.o cnv_tkt_skey.o \
	encode.o misc.o globals.o sendmsg.o krb524_err.o

GENS	= krb524_err.c krb524_err.h

all:: $(GENS) libkrb524.a krb524d test k524init

libkrb524.a: $(OBJS)
	$(ARADD) $@ $(OBJS)
	$(RANLIB) $@

test: libkrb524.a test.o $(DEPKDBLIB) $(DEPKLIB)
	$(CC) -o test $(LDFLAGS) test.o $(KDBLIB) $(KLIB) $(LIBS)

krb524d: libkrb524.a krb524d.o $(DEPKDBLIB) $(DEPKLIB)
	$(CC) -o krb524d krb524d.o $(LDFLAGS) $(KDBLIB) $(KLIB) $(LIBS)

k524init: libkrb524.a k524init.o $(DEPKLIB)
	$(CC) -o k524init $(LDFLAGS) k524init.o $(KLIB) $(LIBS)

install::
	$(INSTALL_DATA) libkrb524.a $(DESTDIR)$(KRB5_LIBDIR)/libkrb524.a
	$(RANLIB) $(DESTDIR)$(KRB5_LIBDIR)/libkrb524.a
	$(INSTALL_PROGRAM) krb524d $(DESTDIR)$(SERVER_BINDIR)/krb524d
	$(INSTALL_PROGRAM) k524init $(DESTDIR)$(CLIENT_BINDIR)/krb524init

clean::
	$(RM) libkrb524.a $(OBJS) $(GENS) core *~ *.bak #*
	$(RM) test krb524d k524init test.o krb524d.o k524init.o