-
Notifications
You must be signed in to change notification settings - Fork 38
/
Makefile
executable file
·43 lines (34 loc) · 1.1 KB
/
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
EXAMPLE_DENSE = examples/cpp/dense
EXAMPLE_PARSING = examples/cpp/parsing
EXAMPLE_LOGIC = examples/cpp/logic
EXAMPLE_SUMMARIZATION = examples/cpp/summarization
AD3 = ad3
OBJS = FactorTree.o
CC = g++
INCLUDES = -I. -I./$(AD3) -I./$(EXAMPLE_DENSE) -I./$(EXAMPLE_PARSING) \
-I./$(EXAMPLE_LOGIC) -I./$(EXAMPLE_SUMMARIZATION)
LIBS = -L/usr/local/lib -L./$(AD3)
DEBUG = -g
CFLAGS = -O3 -Wall -Wno-sign-compare -c -fmessage-length=0 -fPIC $(INCLUDES)
LFLAGS = $(LIBS) -lad3
all: libad3 ad3_multi simple_grid simple_parser simple_coref
ad3_multi: $(OBJS) ad3_multi.o
$(CC) $(OBJS) ad3_multi.o $(LFLAGS) -o ad3_multi
ad3_multi.o: ad3_multi.cpp
$(CC) $(CFLAGS) ad3_multi.cpp
FactorTree.o: $(EXAMPLE_PARSING)/FactorTree.cpp
$(CC) $(CFLAGS) $(EXAMPLE_PARSING)/FactorTree.cpp
simple_grid:
cd $(EXAMPLE_DENSE) && $(MAKE)
simple_parser:
cd $(EXAMPLE_PARSING) && $(MAKE)
simple_coref:
cd $(EXAMPLE_LOGIC) && $(MAKE)
libad3:
cd $(AD3) && $(MAKE)
clean:
rm -f *.o *~ ad3_multi
cd $(AD3) && $(MAKE) clean
cd $(EXAMPLE_DENSE) && $(MAKE) clean
cd $(EXAMPLE_PARSING) && $(MAKE) clean
cd $(EXAMPLE_LOGIC) && $(MAKE) clean