summaryrefslogtreecommitdiffstats
path: root/crypto/kerberosIV/admin/Makefile.in
blob: d0b68b1532ef0645406fe1ac646aa24d3f874e58 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# $Id: Makefile.in,v 1.26 1997/05/04 08:33:50 assar Exp $

SHELL = /bin/sh

srcdir = @srcdir@
VPATH = @srcdir@

CC = @CC@
AR = ar
RANLIB = @RANLIB@
DEFS = @DEFS@
CFLAGS = @CFLAGS@
LD_FLAGS = @LD_FLAGS@
LIBS = @LIBS@
LIB_DBM = @LIB_DBM@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@

MKINSTALLDIRS = @top_srcdir@/mkinstalldirs

prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
sbindir = @sbindir@
transform=@program_transform_name@
EXECSUFFIX=@EXECSUFFIX@

PROGS = ext_srvtab$(EXECSUFFIX) \
	kdb_destroy$(EXECSUFFIX) \
	kdb_edit$(EXECSUFFIX) \
	kdb_init$(EXECSUFFIX) \
	kdb_util$(EXECSUFFIX) \
	kstash$(EXECSUFFIX)

SOURCES = ext_srvtab.c kdb_destroy.c kdb_edit.c \
          kdb_init.c kdb_util.c kstash.c

OBJECTS = ext_srvtab.o kdb_destroy.o kdb_edit.o \
          kdb_init.o kdb_util.o kstash.o

all: $(PROGS)

Wall:
	make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"

.c.o:
	$(CC) -c $(CPPFLAGS) $(DEFS) -I../include -I$(srcdir) $(CFLAGS) $<

install: all
	$(MKINSTALLDIRS) $(sbindir)
	for x in $(PROGS); do \
	  $(INSTALL_PROGRAM) $$x $(sbindir)/`echo $$x|sed '$(transform)'`; \
	done

uninstall:
	for x in $(PROGS); do \
	  rm -f $(sbindir)/`echo $$x|sed '$(transform)'`; \
	done

TAGS: $(SOURCES)
	etags $(SOURCES)

check:

clean:
	rm -f *.a *.o $(PROGS)

mostlyclean: clean

distclean: clean
	rm -f Makefile *.tab.c *~

realclean: distclean
	rm -f TAGS

dist: $(DISTFILES)
	for file in $(DISTFILES); do \
	  ln $$file ../`cat ../.fname`/lib \
	    || cp -p $$file ../`cat ../.fname`/lib; \
	done

KLIB=-L../lib/kdb -lkdb -L../lib/krb -lkrb -L../lib/des -ldes
LIBROKEN= -L../lib/roken -lroken

ext_srvtab$(EXECSUFFIX): ext_srvtab.o
	$(CC) $(LD_FLAGS) $(LDFLAGS) -o $@ ext_srvtab.o $(KLIB) $(LIBROKEN) $(LIB_DBM) $(LIBS) $(LIBROKEN)

kdb_destroy$(EXECSUFFIX): kdb_destroy.o
	$(CC) $(LD_FLAGS) $(LDFLAGS) -o $@ kdb_destroy.o $(KLIB) $(LIBROKEN) $(LIB_DBM) $(LIBS) $(LIBROKEN)

kdb_edit$(EXECSUFFIX): kdb_edit.o
	$(CC) $(LD_FLAGS) $(LDFLAGS) -o $@ kdb_edit.o $(KLIB) $(LIBROKEN) $(LIB_DBM) $(LIBS) $(LIBROKEN)

kdb_init$(EXECSUFFIX): kdb_init.o
	$(CC) $(LD_FLAGS) $(LDFLAGS) -o $@ kdb_init.o $(KLIB) $(LIBROKEN) $(LIB_DBM) $(LIBS) $(LIBROKEN)

kdb_util$(EXECSUFFIX): kdb_util.o
	$(CC) $(LD_FLAGS) $(LDFLAGS) -o $@ kdb_util.o $(KLIB) $(LIBROKEN) $(LIB_DBM) $(LIBS) $(LIBROKEN)

kstash$(EXECSUFFIX): kstash.o
	$(CC) $(LD_FLAGS) $(LDFLAGS) -o $@ kstash.o $(KLIB) $(LIBROKEN) $(LIB_DBM) $(LIBS) $(LIBROKEN)

$(OBJECTS): ../include/config.h
OpenPOWER on IntegriCloud