summaryrefslogtreecommitdiff
path: root/lib/Imakefile
blob: adbae658e653dddf98249ccaf67b42262a2cbbae (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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/**/#	Copyright 1988, 1991 Massachusetts Institute of Technology.
/**/#
/**/#	For copying and distribution information, see the file
/**/#	"mit-copyright.h". 
/**/#
/**/#	$Source$
/**/#	$Author$
/**/#	$Zephyr: /mit/zephyr/src/lib/RCS/Imakefile,v 1.11 91/01/07 13:32:27 raeburn Exp $
/**/#
#define no_curdir_lint

LINTLIBS= ${KRB_LINTLIB} ${DES_LINTLIB} ${COMERR_LINTLIB}

/**/#dummy target so that 'make' does a make all.
all:: libzephyr.a

#ifdef KERBEROS
KERR_O= krb_err.o
KERR_ET=krb_err.et
make_error_table(krb_err)
#endif

RSRCS= ${SRCS} ${HDRS} ${KERR_ET} zephyr_err.et

HDRS= \
	../include/zephyr/zephyr.h \
	../include/zephyr/zephyr_conf.h \
	../include/zephyr/zephyr_internal.h

SRCS=	\
	ZCheckAuthentication.c \
	ZCheckIfNotice.c \
	ZClosePort.c \
	ZCompareUID.c \
	ZCompareUIDPred.c \
	ZFlushLocations.c \
	ZFlushSubscriptions.c \
	ZFormatAuthenticNotice.c \
	ZFormatNotice.c \
	ZFormatNoticeList.c \
	ZFormatRawNotice.c \
	ZFormatRawNoticeList.c \
	ZFormatSmallRawNotice.c \
	ZFormatSmallRawNoticeList.c \
	ZFreeNotice.c \
	ZGetLocations.c \
	ZGetSender.c \
	ZGetSubscriptions.c \
	ZGetWGPort.c \
	ZIfNotice.c \
	ZInitialize.c \
	ZLocateUser.c \
	ZLocations.c \
	ZMakeAscii.c \
	ZMakeAuthentication.c \
	ZNewLocateUser.c \
	ZOpenPort.c \
	ZParseNotice.c \
	ZPeekIfNotice.c \
	ZPeekNotice.c \
	ZPeekPacket.c \
	ZPending.c \
	ZReadAscii.c \
	ZReceiveNotice.c \
	ZReceivePacket.c \
	ZRetrieveSubscriptions.c \
	ZSendList.c \
	ZSendNotice.c \
	ZSendPacket.c \
	ZSendRawNotice.c \
	ZSendRawList.c \
	ZSetDestAddr.c \
	ZSetFD.c \
	ZSetServerState.c \
	ZSubscriptions.c \
	ZVariables.c \
	ZWaitForNotice.c \
	Zinternal.c \
	acl_files.c \
	strcasecmp.c

OLIST=	\
	${KERR_O} \
	zephyr_err.o \
	ZCheckAuthentication.o \
	ZCheckIfNotice.o \
	ZClosePort.o \
	ZCompareUID.o \
	ZCompareUIDPred.o \
	ZFlushLocations.o \
	ZFlushSubscriptions.o \
	ZFormatAuthenticNotice.o \
	ZFormatNotice.o \
	ZFormatNoticeList.o \
	ZFormatRawNotice.o \
	ZFormatRawNoticeList.o \
	ZFormatSmallRawNotice.o \
	ZFormatSmallRawNoticeList.o \
	ZFreeNotice.o \
	ZGetLocations.o \
	ZGetSender.o \
	ZGetSubscriptions.o \
	ZGetWGPort.o \
	ZIfNotice.o \
	ZInitialize.o \
	ZLocateUser.o \
	ZLocations.o \
	ZMakeAscii.o \
	ZMakeAuthentication.o \
	ZNewLocateUser.o \
	ZOpenPort.o \
	ZParseNotice.o \
	ZPeekIfNotice.o \
	ZPeekNotice.o \
	ZPeekPacket.o \
	ZPending.o \
	ZReadAscii.o \
	ZReceiveNotice.o \
	ZReceivePacket.o \
	ZRetrieveSubscriptions.o \
	ZSendList.o \
	ZSendNotice.o \
	ZSendPacket.o \
	ZSendRawNotice.o \
	ZSendRawList.o \
	ZSetDestAddr.o \
	ZSetFD.o \
	ZSetServerState.o \
	ZSubscriptions.o \
	ZVariables.o \
	ZWaitForNotice.o \
	Zinternal.o \
	acl_files.o

OTHERSRCS= zephyr_err.et ${KERR_ET}
SRCDIR= ${SRCTOP}/lib
CODE= ${SRCS} ${OTHERSRCS} Imakefile

llib-lzephyr.ln:: ${HDRS}
	@echo "Don't worry about the complaints about"
	@echo "possible pointer alignment problems, these are a result"
	@echo "of casting the return value of malloc()"
	@echo

library_obj_rule()

install_library_target(zephyr,${OLIST},${SRCS},${LINTLIBS})

make_error_table(zephyr_err)

all::
	$(RM) ../libs/libzephyr.a ../libs/libzephyr_p.a
	$(CP) libzephyr.a ../libs/libzephyr.a
	$(RANLIB) ../libs/libzephyr.a
#ifdef PROFILED_LIBS
	$(CP) libzephyr_p.a ../libs/libzephyr_p.a
	$(RANLIB) ../libs/libzephyr_p.a
#endif
	

#ifdef KERBEROS
depend:: krb_err.h
	-if cmp krb_err.h ../include/zephyr/krb_err.h >/dev/null 2>&1; then \
		echo ; \
	else \
		$(RM) ../include/zephyr/krb_err.h ; \
		$(CP) krb_err.h ../include/zephyr/krb_err.h; \
	fi
#endif /* KERBEROS */

depend:: zephyr_err.h
	-if cmp zephyr_err.h ../include/zephyr/zephyr_err.h >/dev/null 2>&1; then \
		echo ; \
	else \
		$(RM) ../include/zephyr/zephyr_err.h ; \
		$(CP) zephyr_err.h ../include/zephyr/zephyr_err.h; \
	fi

IDIR=${DESTDIR}${ATHINCDIR}
SDIR=../include/zephyr
install::
	-mkdir ${IDIR}
	-mkdir ${IDIR}/zephyr
	install -c -m 0644 ${SDIR}/zephyr.h ${IDIR}/zephyr/zephyr.h
	install -c -m 0644 ${SDIR}/zephyr_conf.h ${IDIR}/zephyr/zephyr_conf.h
	install -c -m 0644 ${SDIR}/zephyr_internal.h ${IDIR}/zephyr/zephyr_internal.h
	install -c -m 0644 zephyr_err.h ${IDIR}/zephyr/zephyr_err.h
#ifdef KERBEROS
	install -c -m 0644 krb_err.h ${IDIR}/zephyr/krb_err.h
#endif /* KERBEROS */
	install -c -m 0644 ${SDIR}/mit-copyright.h ${IDIR}/zephyr/mit-copyright.h

/* this is to install the lint lib  This must end */
/* up in the resulting Makefile AFTER the other lint lib stuff. */
#define last_licks()							@@\
llib-lzephyr.ln::							@@\
	cp llib-lzephyr.ln ../libs/llib-lzephyr.ln