summaryrefslogtreecommitdiff
path: root/lib/Makefile.in
blob: 64e3692c4511a1915e782fc7ba8a5383fb4fa7da (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
SHELL = /bin/sh

prefix=@prefix@
exec_prefix=@exec_prefix@
datadir=@datadir@
sysconfdir=@sysconfdir@
sbindir=@sbindir@
lsbindir=@lsbindir@
top_builddir=..

includedir=${prefix}/include
mandir=@mandir@
libdir=${exec_prefix}/lib
LIBS=@LIBS@

srcdir=@srcdir@
top_srcdir=@top_srcdir@
BUILDTOP=..
VPATH=@srcdir@
LIBTOOL=@LIBTOOL@
CC=@CC@
INSTALL=@INSTALL@
RANLIB=@RANLIB@

DEBUG=-O
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@ ${DEBUG}
ALL_CFLAGS=${CFLAGS} -DSYSCONFDIR=\"${sysconfdir}\" -I${top_srcdir}/h \
	-I${BUILDTOP}/h ${CPPFLAGS}
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@ -lcom_err

OBJS =	zephyr_err.lo ZAsyncLocate.lo ZCkAuth.lo ZCkIfNot.lo ZClosePort.lo \
	ZCmpUID.lo ZCmpUIDP.lo ZFlsLocs.lo ZFlsSubs.lo ZFmtAuth.lo \
	ZFmtList.lo ZFmtNotice.lo ZFmtRaw.lo ZFmtRawLst.lo ZFmtSmRLst.lo \
	ZFmtSmRaw.lo ZFreeNot.lo ZGetLocs.lo ZGetSender.lo ZGetSubs.lo \
	ZGetWGPort.lo ZhmStat.lo ZIfNotice.lo ZInit.lo ZLocations.lo \
	ZMakeAscii.lo ZMkAuth.lo ZNewLocU.lo ZOpenPort.lo ZParseNot.lo \
	ZPeekIfNot.lo ZPeekNot.lo ZPeekPkt.lo ZPending.lo ZReadAscii.lo \
	ZRecvNot.lo ZRecvPkt.lo ZRetSubs.lo ZSendList.lo ZSendNot.lo \
	ZSendPkt.lo ZSendRaw.lo ZSendRLst.lo ZSetDest.lo ZSetFD.lo ZSetSrv.lo \
	ZSubs.lo ZVariables.lo ZWait4Not.lo Zinternal.lo ZMakeZcode.lo \
	ZReadZcode.lo ZCkZAut.lo quad_cksum.lo

.SUFFIXES: .lo

all: libzephyr.la

libzephyr.la: ${OBJS}
	${LIBTOOL} --mode=link ${CC} -rpath ${libdir} -version-info 3:0:0 \
	  ${LDFLAGS} -o $@ ${OBJS} ${LIBS}

zephyr_err.c ${BUILDTOP}/h/zephyr/zephyr_err.h: zephyr_err.et
	compile_et ${srcdir}/zephyr_err.et
	mv -f zephyr_err.h ${BUILDTOP}/h/zephyr

.c.lo:
	${LIBTOOL} --mode=compile ${CC} -c -o $@ ${ALL_CFLAGS} $<

check:

install: libzephyr.la
	${LIBTOOL} --mode=install ${INSTALL} -m 644 libzephyr.la \
	  ${DESTDIR}${libdir}
	${INSTALL} -m 644 ${srcdir}/zephyr.1 ${DESTDIR}${mandir}/man1

clean:
	rm -f zephyr_err.c zephyr_err.h
	${LIBTOOL} --mode=clean rm -f ${OBJS} libzephyr.la

${OBJS}: ${top_srcdir}/h/internal.h ${top_srcdir}/h/sysdep.h
${OBJS}: ${BUILDTOP}/h/config.h ${BUILDTOP}/h/zephyr/zephyr.h
${OBJS}: ${BUILDTOP}/h/zephyr/zephyr_err.h

.PHONY: all check install clean