-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (23 loc) · 584 Bytes
/
Makefile
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
CC=gcc
CFLAGS=-Wall -O3 -std=c99 -DBAGHCHAL_WITH_COLOUR
LIBS=-lm
LDFLAGS=$(LIBS)
OBJECTS=movedb.o normalize.o
PREFIX=~/.local
INSTALL_MODE=0555
INSTALL_BIN=tkchal baghchal
all: baghchal
clean:
@# TODO: check for existence!
rm $(OBJECTS)
rm baghchal
rm movedb_inspect
rm tkchal
install: $(INSTALL_BIN)
install -t $(PREFIX)/bin -m $(INSTALL_MODE) $(INSTALL_BIN)
tkchal: tkchal.py
cp -f tkchal.py tkchal
baghchal: baghchal.c baghchal.h $(OBJECTS)
movedb_inspect: movedb_inspect.c $(OBJECTS)
movedb.o : movedb.h movedb.c normalize.o
normalize.o : normalize.h normalize.c