-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 847 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
OBJ_COUNTLETS = countlets.o klets.o
OBJ_SHUFFLER = shuffler.o klets.o shuffle_euler.o shuffle_linear.o shuffle_markov.o
OBJ_SEQGEN = seqgen.o
OBJ_COUNTFA = countfa.o
OBJ_COUNTWIN = countwin.o klets.o
CXX = g++
CXXFLAGS += --std=c++11 -O3 -Wall -Wextra -pedantic
all: build install
debug: CXXFLAGS += -g -DADD_TIMERS
debug: build install
build:
cd src;\
$(CXX) $(CXXFLAGS) -c *.cpp
countfa:
$(CXX) -o bin/countfa $(addprefix src/, $(OBJ_COUNTFA))
countlets:
$(CXX) -o bin/countlets $(addprefix src/, $(OBJ_COUNTLETS))
countwin:
$(CXX) -o bin/countwin $(addprefix src/, $(OBJ_COUNTWIN))
shuffler:
$(CXX) -o bin/shuffler $(addprefix src/, $(OBJ_SHUFFLER))
seqgen:
$(CXX) -o bin/seqgen $(addprefix src/, $(OBJ_SEQGEN))
makebin:
mkdir -p bin
install: makebin countfa countlets countwin shuffler seqgen
clean:
cd src;\
rm -f *.o