-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 759 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 759 Bytes
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
CCFLAGS=-Wall -Wstrict-overflow=3 -Wno-unused-variable -std=c++0x -ggdb -DSYSTEMPAGESIZE=$(shell getconf PAGESIZE)
LDFLAGS=-lpthread -lreadline
ifeq ($(STDERR_DEBUGGING),1)
CCFLAGS+=-DSTDERR_DEBUGGING
endif
ifeq ($(USE_MMAP_POOL),1)
CCFLAGS+=-DUSE_MMAP_POOL
endif
all: Release Debug
Release: graphcore
Debug: graphcore.dbg
graphcore: src/main.cpp src/*.h
g++ $(CCFLAGS) -O3 -march=native src/main.cpp $(LDFLAGS) -ographcore
graphcore.dbg: src/main.cpp src/*.h
g++ $(CCFLAGS) -O0 -DDEBUG_COMMANDS -ggdb src/main.cpp $(LDFLAGS) -ographcore.dbg
# updatelang: update the language files
# running this will generate changes in the repository
updatelang: #
./update-lang.sh
test: Debug
python test/talkback.py test/graphcore.tb ./graphcore.dbg