4 exec_prefix=@exec_prefix@
6 sysconfdir=@sysconfdir@
10 includedir=${prefix}/include
12 libdir=${exec_prefix}/lib
16 top_srcdir=@top_srcdir@
23 LIBZEPHYR=${BUILDTOP}/lib/libzephyr.la
26 ALL_CFLAGS=${CFLAGS} -DSYSCONFDIR=\"${sysconfdir}\" -I${top_srcdir}/h \
27 -I${BUILDTOP}/h -I. ${CPPFLAGS}
29 LIBS=${LIBZEPHYR} @LIBS@ -lcom_err
31 OBJS= zsrv_err.o access.o acl_files.o bdump.o class.o client.o common.o \
32 dispatch.o kstuff.o main.o server.o subscr.o timer.o uloc.o \
33 zstring.o realm.o version.o
37 zephyrd: ${OBJS} ${LIBZEPHYR}
38 ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
40 zsrv_err.c zsrv_err.h: zsrv_err.et
41 compile_et ${srcdir}/zsrv_err.et
46 sh ${srcdir}/new_vers.sh
49 ${CC} -c ${ALL_CFLAGS} $<
53 # No dependency on zephyrd, to avoid rebuilding version.o.
55 ${LIBTOOL} --mode=install ${INSTALL} -m 755 zephyrd \
57 ${INSTALL} -m 644 ${srcdir}/zephyrd.8 ${DESTDIR}${mandir}/man8
58 ${INSTALL} -m 644 ${srcdir}/default.subscriptions \
59 ${DESTDIR}${sysconfdir}/zephyr
62 ${LIBTOOL} --mode=clean rm -f zephyrd
63 rm -f ${OBJS} zsrv_err.[ch]
67 ${OBJS}: zserver.h zsrv_err.h timer.h zsrv_conf.h zstring.h access.h acl.h
68 ${OBJS}: ${top_srcdir}/h/internal.h ${top_srcdir}/h/sysdep.h
69 ${OBJS}: ${BUILDTOP}/h/config.h ${BUILDTOP}/h/zephyr/zephyr.h
70 ${OBJS}: ${BUILDTOP}/h/zephyr/zephyr_err.h
72 .PHONY: all check install clean always