-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.legacy
48 lines (32 loc) · 1.09 KB
/
Makefile.legacy
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
46
47
CC?=gcc
CXX?=g++
INCLUSION_OPTS=-DINCLUSION_SCC_SEARCH_ACTIVE
CXXFLAGS = -g -Wall -Wpedantic -Wextra $(INCLUSION_OPTS) -std=c++17 -DWEIGHT_EQ_EPSILON=10e-6
CFLAGS = -g -Wall -Wpedantic -Wextra -std=c17 -DWEIGHT_EQ_EPSILON=10e-6
SRCDIR = src
SRC0 = $(filter-out $(SRCDIR)/quak-main.cpp, $(wildcard $(SRCDIR)/*.c) $(wildcard $(SRCDIR)/*.cpp))
SRC1 = $(wildcard $(SRCDIR)/*/*.c) $(wildcard $(SRCDIR)/*/*.cpp)
SRC = $(SRC0) $(SRC1)
OBJDIR = obj
OBJ = $(SRC:$(SRCDIR)/%=$(OBJDIR)/%.o)
BIN = quak
default: all
all: $(BIN)
$(BIN): $(OBJ) $(SRCDIR)/quak-main.cpp
$(CXX) $(CXXFLAGS) $^ -o $@
$(OBJDIR)/%.c.o: $(SRCDIR)/%.c
mkdir -p $(OBJDIR)/FORKLIFT
$(CC) $(CFLAGS) -c $< -o $@
$(OBJDIR)/%.cpp.o: $(SRCDIR)/%.cpp
mkdir -p $(OBJDIR)/FORKLIFT
$(CXX) $(CXXFLAGS) -c $< -o $@
test-limsup: tests/*.cpp
$(CXX) $(CXXFLAGS) $(OBJ) tests/test-inclusion-rand.cpp -Isrc\
-DREPETITIONS=1000 -DSTATES_NUM=2 -DEDGES_NUM=0\
-DMIN_WEIGHT=-10 -DMAX_WEIGHT=10 -DALPHABET_SIZE=2\
-DVALUE_FUNCTION=LimSup\
-o test-limsup
.PHONY: clean
clean:
rm -f $(wildcard $(OBJDIR)/*.o) $(wildcard $(OBJDIR)/*/*.o)
rm -f $(BIN)