summaryrefslogtreecommitdiffstats
path: root/src/kadmin/config.mk/template
blob: caf3a2d9d27360334c924ca4161e60b7b560e733 (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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# $Id$
# $Source$

export TOP

KRB5B4		= true
CONFDIR		= $(TOP)/config.mk

ifndef CUR_DIR
CUR_DIR 	= .
endif

#
# get the os name
#

include $(CONFDIR)/architecture

# 
# Programs
#
IMAKE		= imake
# The purpose of this variable setting is to prevent -w from being
# passed down via environment variables into sub-makes that use SunOS
# Make rather than GNU make.
ifndef MAKE_PRINT_DIRECTORY
MAKE	       := $(MAKE) --no-print-directory MAKEFLAGS=$(MAKEFLAGS) MFLAGS=$(MFLAGS)
endif
CC		= gcc
AR		= ar
RANLIB		= ranlib
LD		= ld
RM		= rm
CLEAN		= rm -f
MV		= mv
LN		= ln
LNSOFT		= $(LN) -s
MAKEDEPEND 	= makedepend
RPCGEN		= rpcgen
PERL		= /usr/local/bin/perl
DUMPPERL 	= /usr/local/bin/perl.static
UNDUMP		= undump
YACC		= $(TOP)/scripts/newyacc.sh
GENPROT 	= $(TOP)/scripts/genproto.sh
INSTCMD		= install -c
export INSTCMD
PURIFY		= purify
PROOF		= proof
QUANTIFY	= quantify
LEX_LIB		= -ll
PERL		= /usr/local/bin/perl
OBJDUMP		= /usr/local/bin/gobjdump
OBJCOPY		= /usr/local/bin/gobjcopy

# Dejagnu variables

# We have to set the host with --host so that setup_xfail will work.
# If we don't set it, then the host type used is "native", which
# doesn't match "*-*-*".

DEJAFLAGS	:= $(DEJALFLAGS) $(CLFLAGS) --debug --host \
		   unknown-$(shell uname -m)-$(shell uname -s)$(shell uname -r)
ifdef VERBOSE_TEST
DEJAFLAGS	+= --verbose
endif

RUNTEST		:= runtest $(DEJAFLAGS)

#
# Flags.  Since this is the initial setting, don't preserve current
# values; otherwise, recursive makes will get the sum of everything.
#
YFLAGS		= -d
ARFLAGS		= cru
CFLAGS		:= $(CLFLAGS)
LDFLAGS		:= $(CLFLAGS)

#
# The default target is "all".  Put this before any includes, in case
# the includes define new targets.  Or perhaps they should be allowed
# to define a new default target...
#
all::

#
# Get a unique number for files built in /tmp
#
__PID__ := $(shell echo $$$$)

include $(CONFDIR)/config

include $(CONFDIR)/rules

expand IncludeArchFile

include $(CONFDIR)/site.def

ifdef STRIP_INSTALLED
INST_PROG_FLAGS	= -s
endif

# avoid makefiles from failing on default rules
expand DefaultRules

# include dependencies
ifeq ($(shell [ -r Makefile.depend ] && echo yes),yes)
include Makefile.depend
endif

# disable RCS frobbing
% :: RCS/%,v

# fix lex rule
.l.c:
	$(RM) -f $@
	$(LEX) $(LFLAGS) -t $< > $@

# error table rule
.SUFFIXES: .et
.et.c:
	$(COMPILE_ET) $<
.et.h:
	$(COMPILE_ET) $<

# rpcgen rule
.SUFFIXES: .x
.x.c:
	$(RPCGEN) -o $@ -c $<
.x.h:
	$(RPCGEN) -o $@ -h $<

# command table rule
.SUFFIXES: .ct
.ct.c:
	$(MK_CMDS) $<
.ct.h:
	$(MK_CMDS) $<

CMD="echo 'You must specify CMD to use the 'execute' rule.'; exit 1"

execute:
	@eval $(CMD)