summaryrefslogtreecommitdiff
path: root/config/zephyr.rules
blob: 8e3d1bc9b02e23e43f23823c5fd3f705495e7b3a (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
/**/#	Copyright 1993 Massachusetts Institute of Technology
/**/#	For copying and distribution information, see the file
/**/#	"mit-copyright.h"
/**/#
/**/#	$Id$

/* General system configuration */
#define KERBEROS	/* Has Kerberos installed */
#define HESIOD		/* Has Hesiod installed */

/* Other defines that one may wish to use */
#if 0
#define NO_IMAKE	/* Need to build imake */
#define NO_ET		/* Need to build com_err library */
#define NO_SS		/* Need to build ss library */
#endif

#ifndef UseSharedLibs
#define UseSharedLibs
#endif

#ifdef NO_IMAKE
D_IMAKE = $(PTOP)/util/imake
IMAKE = $(D_IMAKE)/imake
OTHER_IFLAGS = -DNO_IMAKE
Makefile Makefiles:: $(IMAKE)
#endif

#ifdef KERBEROS
CDEFS_KRB = -DKERBEROS
ZLIB_KRB = $(LIB_KRB)
#endif

#ifdef HESIOD
CDEFS_HES = -DHESIOD
ZLIB_HES = $(LIB_HES)
#endif

#ifdef NO_ET
D_ET = $(PTOP)/util/et
CDEFS_ET = -I$(D_ET)
#define EtLibs $(D_ET)/libcom_err.a
#endif

#ifdef NO_SS
D_UTIL = $(PTOP)/util
D_SS = $(D_UTIL)/ss
CDEFS_SS = -I$(D_UTIL)
#define SsLibs $(D_SS)/libss.a
#endif

ZPIDDIR = /var/athena
ZETCDIR = $(ATHCONFDIR)/zephyr
ZLIBDIR = $(ATHLIBDIR)/zephyr
ZINCDIR = $(ATHINCDIR)/zephyr
ZACLDIR = $(ZETCDIR)/acl

BINC = $(PTOP)/h

ZLIB = $(PTOP)/lib/libzephyr.a
ZLIBDES = $(PTOP)/libdes/libdes.a
ZLIBS = $(ZLIB_KRB) $(LIB_ET) $(ZLIB_HES)
DYN_LIB = $(PTOP)/libdyn/libdyn.a

DEFINES = $(XDEFS) -DX11 -I$(BINC) \
	$(CDEFS_KRB) $(CDEFS_HES) $(CDEFS_ET) $(CDEFS_SS) \
	$(MACHDEFS)

#ifndef _AIX /* AIX ANSI CcCmd doesn't want to compile compile_et output. */
AnsiCC()
#endif

/* 
 * Supplemental rules
 */
#define make_err(name) \
error_table(name)							@@\
all:: concat3($(BINC)/zephyr/,name,.h)					@@\
$(OBJS): concat3($(BINC)/zephyr/,name,.h)				@@\
concat3($(BINC)/zephyr/,name,.h): concat2(name,.h)			@@\
	$(RM) $@; $(CP) concat2(name,.h) $@				@@\
clean::									@@\
	$(RM) concat3($(BINC)/zephyr/,name,.h)

#define zprogram(name,libs) \
SimpleProgram(name,$(OBJS) $(ZLIB),libs $(ZLIBS),$(ATHBINDIR)) @@\
create_depend($(SRCS))


#if defined(UseInstalled) && defined(NoBrainDamage)
ATHBINDIR = /mit/zephyr/@sys/bin
ATHLIBDIR = /mit/zephyr/@sys/lib
ATHINCDIR = /mit/zephyr/include
ATHMANDIR = /mit/zephyr/man

ZLIBDIR = /mit/zephyr/configs
ATHCONFDIR = $(ZLIBDIR)
ATHETCDIR = $(ATHBINDIR)
ATHRETCDIR = $(ATHBINDIR)

LDPATH = -L/usr/athena/lib/shared -L/usr/athena/lib
#endif