blob: 1e52d9c6066c998414e2ab3336358d2486782ff2 (
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
|
InstallRoot = /home/peterson
SHELL=/bin/sh
INSTALL = install
DFLAG = -g
##################################################################
#
# xscope -- spy on characters to and from an X11 server
#
# Author: JLPeterson, MCC
#
# Installs bin/xscope
#
##################################################################
CFLAGS = ${DFLAG} ${IFLAGS}
all: xscope
SRCS = scope.c common.c fd.c server.c decode11.c table11.c print11.c prtype.c
OBJS = scope.o common.o fd.o server.o decode11.o table11.o print11.o prtype.o
xscope: ${OBJS}
${CC} ${CFLAGS} ${OBJS} -o xscope
##################################################################
install: all
${INSTALL} xscope /home/peterson/bin/xscope
${INSTALL} xscope.1 /home/peterson/man/xscope.1
##################################################################
#
# configuration
#
config:
sed 's|$$<\InstallRoot>|'"${InstallRoot}|g" < Makefile.meta > Makefile
##################################################################
#
# lint
#
lint:
lint -bux ${IFLAGS} ${SRCS}
##################################################################
#
# clean
#
clean:
rm -f *.o xscope
rm -f core load.map *~ \#*
##################################################################
#
# dependencies
#
scope.o: scope.c scope.h
common.o: common.c scope.h
fd.o: fd.c fd.h scope.h
server.o: server.c scope.h x11.h
decode11.o: decode11.c scope.h x11.h
table11.o: table11.c scope.h x11.h
print11.o: print11.c scope.h x11.h
prtype.o: prtype.c scope.h x11.h
scope.h: fd.h
|