-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (36 loc) · 897 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
BUILD=build/
CFLAGS := -pipe -Wall -Wextra -fstrict-aliasing
ifdef DEBUG
CFLAGS := -ggdb -g -fno-omit-frame-pointer -O2 ${CFLAGS}
else
CFLAGS := -g -fomit-frame-pointer -O3 ${CFLAGS}
endif
-include config.mk
# Fix pdflatex search path
TEXINPUTS := "$(TEXINPUTS):docs"
TEXFLAGS := -halt-on-error -interaction=nonstopmode -file-line-error
TEXGREP := grep -i ".*:[0-9]*:.*\|warning"
TGT_DIR :=
TGT_DOC :=
# Default target is 'all'. The 'build' target is defined here so that all
# sub rules.mk can add prerequisites to the 'build' target.
all:
build:
d := docs/
include base.mk
include $(d)/rules.mk
d := external/
include base.mk
include $(d)/rules.mk
d := tests/
include base.mk
include $(d)/rules.mk
.PHONY: all doc build clean pyclean distclean
all: doc build
distclean: clean pyclean
clean:
rm -rf $(CLEAN)
pyclean:
find -name \*.pyc -delete
$(TGT_DIR):
mkdir -p $(TGT_DIR)