]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/clients/zctl/Makefile.in
This commit was manufactured by cvs2svn to create branch
[1ts-debian.git] / zephyr / clients / zctl / 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 bindir=${exec_prefix}/bin
14
15 srcdir=@srcdir@
16 top_srcdir=@top_srcdir@
17 BUILDTOP=../..
18 VPATH=@srcdir@
19 CC=@CC@
20 INSTALL=@INSTALL@
21
22 CPPFLAGS=@CPPFLAGS@
23 CFLAGS=@CFLAGS@
24 ALL_CFLAGS=${CFLAGS} -I${top_srcdir}/h -I${BUILDTOP}/h @X_CFLAGS@ ${CPPFLAGS}
25 LDFLAGS=-L${BUILDTOP}/lib @LDFLAGS@
26 LIBS=-lzephyr -lss -lreadline -lhistory -lcurses @LIBS@ -lcom_err
27
28 OBJS=   zctl.o zctl_cmds.o
29
30 all: zctl
31
32 zctl: ${OBJS} ${BUILDTOP}/lib/libzephyr.a
33         ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
34
35 zctl_cmds.c: zctl_cmds.ct
36         mk_cmds ${srcdir}/zctl_cmds.ct
37
38 .c.o:
39         ${CC} -c ${ALL_CFLAGS} $<
40
41 check:
42
43 install: zctl
44         ${INSTALL} -m 755 -s zctl ${DESTDIR}${bindir}
45         ${INSTALL} -m 644 ${srcdir}/zctl.1 ${DESTDIR}${mandir}/man1
46
47 clean:
48         rm -f ${OBJS} zctl_cmds.c zctl
49
50 ${OBJS}: ${top_srcdir}/h/sysdep.h ${BUILDTOP}/h/config.h
51 ${OBJS}: ${BUILDTOP}/h/zephyr/zephyr.h ${BUILDTOP}/h/zephyr/zephyr_err.h
52
53 .PHONY: all check install clean
54