-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 1.18 KB
/
Makefile
File metadata and controls
37 lines (29 loc) · 1.18 KB
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
#CC=clang -fmacro-backtrace-limit=0 -Wno-gnu-binary-literal
#CC=gcc
CFLAGS += -O3
all: bitl.o hgolbi.o infos TU
.PHONY: infos
infos: bitl.o hgolbi.o
cloc --by-file hgolbi.h hgolbi.c bitl.h bitl.c
nm -g --defined-only ./hgolbi.o
nm -g --defined-only ./bitl.o
.PHONY: TU
TU: bitl hgolbi_example
./bitl
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:../minimaps time -v ./hgolbi_example -U -x-9_10,3_4 -y-5_6,7_8 -t1_0 -t2_0 </dev/null
bitl.o: CFLAGS += -Wno-format -Wno-format-security
bitl.o: bitl.c bitl.h
bitl: CFLAGS += -Wno-format -Wno-format-security -g -DDEBUG -DTUEXE
bitl: bitl.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
#hgolbi.o: CFLAGS += -DDEBUG
hgolbi.o: CPPFLAGS+=-I../minimaps
hgolbi.o: CFLAGS += -Wno-format -Wno-format-security
hgolbi.o: hgolbi.h hgolbi.c bitl.o
hgolbi_example.o: CPPFLAGS+=-I../minimaps
hgolbi_example.o: CPPFLAGS+=-I. -I../minimaps/examples
hgolbi_example.o: CFLAGS += -Wno-format -Wno-format-security # since register_printf_specifier (non-standard gnu extension) is used.
hgolbi_example.o: hgolbi_example.c hgolbi.h bitl.h ../minimaps/examples/group_bfs.c
hgolbi_example: LDLIBS+=-lmap
hgolbi_example: LDFLAGS+=-L. -L../minimaps
hgolbi_example: hgolbi.o bitl.o hgolbi_example.o