blob: cdc6662ce718e2391ef7c15acffcc3c39e5eba9a (
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
|
PREFIX := /usr/local
BIN_DIR := $(PREFIX)/bin
ifdef PCC
PCC_CFLAGS=-D__float128="long double"
else
PCC_CFLAGS=
endif
CFLAGS = $(PCC_CFLAGS) $(CFLAGS_EXTRA)
OBJS = clld.c
OBJ_NAME = clld
all : clean $(OBJS)
$(CC) $(OBJS) $(CFLAGS) -o $(OBJ_NAME)
test-mvmt :
$(CC) test-mvmt.c $(CFLAGS) -o test-mvmt
benchmark: clean
$(CC) clld-bench.c $(CFLAGS) -o clld-bench
clean :
rm -f $(OBJ_NAME) test-mvmt clld-bench
install :
install -D -m755 clld $(BIN_DIR)/clld
uninstall :
rm -f $(BIN_DIR)/clld
|