blob: f05117c23742b000cfbdbed1fdf5021caa2c295e (
plain) (
blame)
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
|
TARGET=quart
SRC=*.c
CC=gcc
CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic -lm
REL_FLAGS=-O3
DBG_FLAGS=-Wall -g3
COMPILE=$(CC) -o $(TARGET) $(SRC) $(CFLAGS) -Ilib
make: $(SRC)
$(CC) $(REL_FLAGS) $(CFLAGS) -o $(TARGET) $^
debug: $(SRC)
$(CC) $(DBG_FLAGS) -fsanitize=address $(CFLAGS) -o $(TARGET) $^
noasan: $(SRC)
$(CC) $(DBG_FLAGS) $(CFLAGS) -o $(TARGET) $^
docs:
scdoc < quart.1.scd > quart.1
scdoc < quart.5.scd > quart.5
ln -fs quart.1 qc.1
.PHONY: clean
clean:
rm -f *.o
rm -f *.1
rm -f *.5
rm -f $(TARGET)
install: $(TARGET)
@cp -v $(TARGET) /usr/local/bin/$(TARGET)
@cp -v qc /usr/local/bin/qc
uninstall:
@rm -v /usr/local/bin/$(TARGET)
|