blob: 6f61a1eea39b9a028ae7d0b700897f7bc187410f (
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
|
thisconfigdir=./..
myfulldir=include/krb5
mydir=krb5
MY_SUBDIRS=.
BUILDTOP=$(REL)../..
KRB5RCTMPDIR= @KRB5_RCTMPDIR@
##DOSBUILDTOP = ..\..
NO_OUTPRE=1
KRB5_HEADERS = adm.h adm_proto.h kdb.h kdb_dbm.h winsock.h
# these are installed here for the build from lib/krb5/error_tables but
# also need to be in the installed tree
ET_HEADERS = adm_err.h asn1_err.h kdb5_err.h krb5_err.h
BUILT_HEADERS = osconf.h
all-unix:: autoconf.h $(BUILT_HEADERS)
all-mac:: $(BUILT_HEADERS)
all-windows:: autoconf.h $(BUILT_HEADERS)
##DOS##autoconf.h: ..\win-mac.h
##DOS## $(CP) ..\win-mac.h $@
##DOS##osconf.h: stock\osconf.h
##DOS## $(CP) stock\osconf.h $@
# We need to comment out the Unix autoconf.h and osconf.h block below
# if we're building for Windows. Thus, we need to enclose them
# between the lines "##DOS##!if 0" and "##DOS##!endif". We enclosed
# the entire section between the long hashed lines to make the block
# stand out.
###############################################################################
##DOS##!if 0
# Should only rebuild autoconf.h here (use CONFIG_FILES=), but the weird krb5
# makefile post-processing is unconditional and would trash the makefile.
autoconf.h: autoconf.stamp
autoconf.stamp: $(srcdir)/autoconf.h.in $(thisconfigdir)/config.status
(cd $(thisconfigdir) && $(SHELL) config.status)
touch autoconf.stamp
SYSCONFDIR = @sysconfdir@
LOCALSTATEDIR = @localstatedir@
BINDIR = @bindir@
SBINDIR = @sbindir@
PROCESS_REPLACE = -e "s+@KRB5RCTMPDIR+$(KRB5RCTMPDIR)+" \
-e "s+@PREFIX+$(INSTALL_PREFIX)+" \
-e "s+@EXEC_PREFIX+$(INSTALL_EXEC_PREFIX)+" \
-e "s+@BINDIR+$(BINDIR)+" \
-e "s+@SBINDIR+$(SBINDIR)+" \
-e 's+@LOCALSTATEDIR+$(LOCALSTATEDIR)+' \
-e 's+@SYSCONFDIR+$(SYSCONFDIR)+'
OSCONFSRC = $(srcdir)/stock/osconf.h
osconf.h: $(OSCONFSRC)
cat $(OSCONFSRC) | sed $(PROCESS_REPLACE) > osconf.new
@if cmp -s osconf.new osconf.h ; then :; \
else (set -x; $(RM) osconf.h ; $(CP) osconf.new osconf.h; $(RM) osconf.new) fi
##DOS##!endif
###############################################################################
depend::
install::
clean::
$(RM) osconf.new $(BUILT_HEADERS)
clean-unix::
$(RM) $(ET_HEADERS) autoconf.h autoconf.stamp
clean-mac::
$(RM) osconf.h autoconf.h autoconf.stamp
clean-windows::
$(RM) osconf.h autoconf.h autoconf.stamp
|