blob: 6641df69556f55084eea8184624d65b3255994ac (
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
|
SHELL = /bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
datadir=@datadir@
sysconfdir=@sysconfdir@
sbindir=@sbindir@
lsbindir=@lsbindir@
top_builddir=../..
includedir=${prefix}/include
mandir=${prefix}/man
libdir=${exec_prefix}/lib
bindir=${exec_prefix}/bin
srcdir=@srcdir@
top_srcdir=@top_srcdir@
BUILDTOP=../..
VPATH=@srcdir@
LIBTOOL=@LIBTOOL@
CC=@CC@
INSTALL=@INSTALL@
at=@
LIBZEPHYR=${BUILDTOP}/lib/libzephyr.la
LIBDYN=${BUILDTOP}/libdyn/libdyn.a
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@
ALL_CFLAGS=${CFLAGS} -DDATADIR=\"${datadir}\" -I${top_srcdir}/h \
-I${BUILDTOP}/h @X_CFLAGS@ ${CPPFLAGS}
LDFLAGS=@X_LIBS@ @LDFLAGS@
LIBS=${LIBZEPHYR} ${LIBDYN} -lXaw -lXmu -lXt @X_PRE_LIBS@ -lX11 -lXext \
@X_EXTRA_LIBS@ @LIBS@ -lcom_err
OBJS= interface.o resource.o destlist.o util.o bfgets.o gethomedir.o \
dest_window.o xzwrite.o edit_window.o zephyr.o GetString.o Popup.o \
yank.o menu_window.o logins.o
all: xzwrite XZwrite
xzwrite: ${OBJS} ${LIBZEPHYR} ${LIBDYN}
${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
.c.o:
${CC} -c ${ALL_CFLAGS} $<
XZwrite: XZwrite.in
rm -f XZwrite
sed -e 's,$(at)datadir$(at),$(datadir),' < ${srcdir}/XZwrite.in \
> XZwrite
check:
install: xzwrite XZwrite
${LIBTOOL} --mode=install ${INSTALL} -m 755 xzwrite ${DESTDIR}${bindir}
${INSTALL} -m 644 ${srcdir}/xzwrite.1 ${DESTDIR}${mandir}/man1
${INSTALL} -m 644 XZwrite ${DESTDIR}${datadir}/zephyr
${INSTALL} -m 644 ${srcdir}/xzwrite.bitmap ${DESTDIR}${datadir}/zephyr
clean:
${LIBTOOL} --mode=clean rm -f xzwrite
rm -f ${OBJS}
${OBJS}: xzwrite.h xzwrite-proto.h ${top_srcdir}/h/sysdep.h
${OBJS}: ${BUILDTOP}/h/config.h ${BUILDTOP}/h/zephyr/zephyr.h
${OBJS}: ${BUILDTOP}/h/zephyr/zephyr_err.h
destlist.o logins.o xzwrite.o zephyr.o: ${top_srcdir}/h/dyn.h
.PHONY: all check install clean
|