]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/server/Makefile.in
This commit was manufactured by cvs2svn to create branch
[1ts-debian.git] / zephyr / server / Makefile.in
1 SHELL = /bin/sh
2
3 prefix=@prefix@
4 exec_prefix=@exec_prefix@
5 datadir=@datadir@
6 sysconfdir=@sysconfdir@
7 sbindir=@sbindir@
8 lsbindir=@lsbindir@
9
10 includedir=${prefix}/include
11 mandir=@mandir@
12 libdir=${exec_prefix}/lib
13
14 srcdir=@srcdir@
15 top_srcdir=@top_srcdir@
16 BUILDTOP=..
17 VPATH=@srcdir@
18 CC=@CC@
19 INSTALL=@INSTALL@
20
21 CPPFLAGS=@CPPFLAGS@
22 CFLAGS=@CFLAGS@
23 ALL_CFLAGS=${CFLAGS} -DSYSCONFDIR=\"${sysconfdir}\" -I${top_srcdir}/h \
24         -I${BUILDTOP}/h -I. ${CPPFLAGS}
25 LDFLAGS=-L${BUILDTOP}/lib @LDFLAGS@
26 LIBS=-lzephyr @LIBS@ -lcom_err
27
28 OBJS=   zsrv_err.o access.o acl_files.o bdump.o class.o client.o common.o \
29         dispatch.o kopt.o kstuff.o main.o server.o subscr.o timer.o uloc.o \
30         zstring.o realm.o version.o
31
32 all: zephyrd
33
34 zephyrd: ${OBJS} ${BUILDTOP}/lib/libzephyr.a
35         ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
36
37 zsrv_err.c zsrv_err.h: zsrv_err.et
38         compile_et ${srcdir}/zsrv_err.et
39
40 version.o: version.h
41
42 version.h: always
43         sh ${srcdir}/new_vers.sh
44
45 .c.o:
46         ${CC} -c ${ALL_CFLAGS} $<
47
48 check:
49
50 # No dependency on zephyrd, to avoid rebuilding version.o.
51 install:
52         ${INSTALL} -m 755 -s zephyrd ${DESTDIR}${sbindir}
53         ${INSTALL} -m 644 ${srcdir}/zephyrd.8 ${DESTDIR}${mandir}/man8
54         ${INSTALL} -m 644 ${srcdir}/default.subscriptions \
55                 ${DESTDIR}${sysconfdir}/zephyr
56
57 clean:
58         rm -f ${OBJS} zephyrd zsrv_err.[ch]
59
60 always:
61
62 ${OBJS}: zserver.h zsrv_err.h timer.h zsrv_conf.h zstring.h access.h acl.h
63 ${OBJS}: ${top_srcdir}/h/internal.h ${top_srcdir}/h/sysdep.h
64 ${OBJS}: ${BUILDTOP}/h/config.h ${BUILDTOP}/h/zephyr/zephyr.h
65 ${OBJS}: ${BUILDTOP}/h/zephyr/zephyr_err.h
66
67 .PHONY: all check install clean always
68