1 | COPTS = -g |
1 | COPTS = -g |
2 | |
2 | |
3 | CFLAGS = -Wall $(COPTS) |
3 | CFLAGS = -Wall $(COPTS) -DUSE_TOON_GET_ROOT_WINDOW |
4 | |
4 | |
5 | LDFLAGS = -L/usr/X11R6/lib -lX11 |
5 | LDFLAGS = -L/usr/X11R6/lib -lX11 |
6 | |
6 | |
7 | PREFIX = /usr |
7 | PREFIX = /usr |
8 | BINDIR = $(PREFIX)/bin |
8 | BINDIR = $(PREFIX)/bin |
9 | MANDIR = $(PREFIX)/share/man/man1 |
9 | MANDIR = $(PREFIX)/share/man/man1 |
10 | DOCDIR = $(PREFIX)/share/doc/root-tail |
10 | DOCDIR = $(PREFIX)/share/doc/root-tail |
11 | |
11 | |
|
|
12 | SOURCES = root-tail.c toon_root.c |
12 | all: root-tail man |
13 | all: root-tail man |
13 | |
14 | |
14 | root-tail: root-tail.c config.h |
15 | root-tail: $(SOURCES) config.h |
15 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< |
16 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SOURCES) |
16 | |
17 | |
17 | man: root-tail.1.gz |
18 | man: root-tail.1.gz |
18 | |
19 | |
19 | root-tail.1.gz: root-tail.man |
20 | root-tail.1.gz: root-tail.man |
20 | cp root-tail.man root-tail.1 |
21 | cp root-tail.man root-tail.1 |