Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 PREFIX=/usr/local
2 BIN_DIR=$(PREFIX)/bin
3 MAN_PATH=$(PREFIX)/share/man
4 CC_OPT_FLAGS=-O2 -Wall
5
6
7 PKG_CFLAGS= $(CC_OPT_FLAGS) $(DEFS) `fribidi-config --cflags`
8 PKG_LDFLAGS=`fribidi-config --libs`
9
10 all: bidiv
11
12 bidiv: bidiv.o term.o
13 $(CC) -o bidiv bidiv.o term.o $(PKG_LDFLAGS) $(LDFLAGS)
14
15 clean:
16 rm -f bidiv.o *~ bidiv term.o
17
18 clobber: clean
19 rm -f bidiv
20
21 .c.o:
22 $(CC) -c $(PKG_CFLAGS) $(CFLAGS) $<
23
24 install: all
25 cp bidiv $(BIN_DIR)
26 chmod 755 $(BIN_DIR)/bidiv
27 cp bidiv.1 $(MAN_PATH)/man1/bidiv.1
28 chmod 644 $(MAN_PATH)/man1/bidiv.1
29
30 uninstall:
31 rm -f $(BIN_DIR)/bidiv $(MAN_PATH)/man1/bidiv.1