blob: 6d4d20c0a766776efe387a5e146656d5c3234a5e (
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
|
BUILDTOP=@BUILDTOP@
srcdir = @srcdir@
VPATH = @srcdir@
LEX = @LEX@
LEXLIB = @LEXLIB@
KRB5ROOT = @KRB5ROOT@
KDB5DIR = $(KRB5ROOT)
KRB5SRVTABDIR = /etc
RM = rm -f
CP = cp
KRB5_HEADERS = asn1.h base-defs.h ccache.h crc-32.h encryption.h \
error_def.h errors.h ext-proto.h fieldbits.h \
free.h func-proto.h hostaddr.h kdb.h kdb_dbm.h \
keytab.h krb5.h libos.h los-proto.h macros.h mit-des.h \
narrow.h proto.h rcache.h rsa-md4.h safepriv.h \
sysincl.h widen.h wordsize.h
all:: autoconf.h osconf.h config.h
includes:: autoconf.h
# Run a header through a preprocessor to generate an architecture/environment
# specific header file. note that unifdef's exit status will normally be 1,
# indicating some adjustment of the file took place.
autoconf.h: $(srcdir)/autoconf.h.in config.status
$(SHELL) config.status
clean::
$(RM) autoconf.h
depend::
KRB5ROOT = @KRB5ROOT@
KRB5_INCDIR = $(KRB5ROOT)/include
install:: $(KRB5_HEADERS) config.h osconf.h autoconf.h
@set -x; for f in $(KRB5_HEADERS) config.h osconf.h ; \
do $(INSTALL) -c $(INSTDATFLAGS) $$f $(KRB5_INCDIR)/krb5/$$f ; \
done
PROCESS_REPLACE = -e "s+@KRB5ROOT+$(KRB5ROOT)+" \
-e "s+@KDB5DIR+$(KDB5DIR)+" \
-e "s+@KRB5SRVTABDIR+${KRB5SRVTABDIR}+" \
-e "/UnifdefRan/,/SPLIT-HERE/d"
OSCONFSRC = $(srcdir)/stock/osauto.h $(srcdir)/stock/osconf.h
osconf.h: $(OSCONFSRC)
cat $(OSCONFSRC) | sed $(PROCESS_REPLACE) > osconf.new
if cmp -s osconf.new osconf.h ; then true; \
else $(RM) osconf.h ; $(CP) osconf.new osconf.h ; fi
CONF_REPLACE = -e "/UnifdefRan/,/SPLIT-HERE/d"
CONFSRC = $(srcdir)/stock/confauto.h $(srcdir)/stock/config.h
config.h: $(CONFSRC)
cat $(CONFSRC) | sed $(CONF_REPLACE) > config.new
if cmp -s config.new config.h ; then true; \
else $(RM) config.h ; $(CP) config.new config.h ; fi
|