-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (36 loc) · 854 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
CPPFLAGS += -std=c++11
CPPFLAGS += -fpermissive
CPPFLAGS += -I ${shell pwd}/include/
CC = g++
AR = ar
LD = ld
.DEFAULT_GOAL := all
objs += main.o
include ./common/config.mk
include ./utils/config.mk
# Makefile Mark Start
include ./alg-bs/config.mk
include ./alg-astar/config.mk
include ./alg-hasmlcs/config.mk
include ./alg-promlcs/config.mk
include ./alg-quickdp/config.mk
include ./alg-topmlcs/config.mk
include ./alg-mlcsapp/config.mk
include ./alg-test/config.mk
include ./alg-example/config.mk
# Makefile Mark End
target = LCSCalculator
$(target): $(objs)
$(CC) -o $(target) $(objs)
%.o : %.cpp
$(CC) $(CPPFLAGS) -o $@ $< -c
all: $(target)
clean:
for i in `ls` ; do \
if [[ $$i == alg-* ]]; then \
cd $$i && rm -rf *.o && cd .. ; \
fi ; \
done
cd common; rm -rf *.o; cd ..
cd utils; rm -rf *.o; cd ..
rm -rf *.o $(target)