-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
31 lines (23 loc) · 999 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
.PHONY: all test clean quadtree uniform_grid loose_tight_double_grid uniform_grid_c11
all: quadtree uniform_grid uniform_grid_c11
CFLAGS= -g3 -std=c99 -O2 -rdynamic -Wall -fPIC -shared -Wno-missing-braces
CPPFLAGS= -g3 -O2 -rdynamic -Wall -fPIC -shared -Wno-missing-braces
IntListInclude=./int_list
SmallListInclude=./small_list
quadtree: quadtree.so
quadtree.so: quadtree/luabinding.c quadtree/Quadtree.c int_list/IntList.c
gcc $(CFLAGS) -I$(IntListInclude) -o $@ $^
uniform_grid: ugrid.so
ugrid.so: uniform_grid/luabinding.c uniform_grid/ugrid.c uniform_grid/elt_free_list.c int_list/IntList.c
gcc $(CFLAGS) -I$(IntListInclude) -o $@ $^
uniform_grid_c11: ugrid2.so
ugrid2.so: uniform_grid/luabinding2.cpp uniform_grid/UGrid.cpp
g++ $(CPPFLAGS) -I$(SmallListInclude) -o $@ $^
loose_tight_double_grid: loose_tight_double_grid.so
loose_tight_double_grid.so: loose_tight_double_grid/LGrid.cpp
g++ $(CPPFLAGS) -I$(SmallListInclude) -o $@ $^
all: test
test:
lua test.lua
clean:
rm -f *.so