aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/makefile b/makefile
index ed10a1a..b4cf5d8 100644
--- a/makefile
+++ b/makefile
@@ -1,20 +1,17 @@
CXX = g++
-CXXFLAGS = -Wall -Wextra -Wpedantic -std=c++2a -g
+CXXFLAGS = -Wall -Wextra -Wpedantic -std=c++2a -g -funroll-loops
+LDFLAGS = -static -static-libgcc -static-libstdc++
RELEASE = -O3 -march=native -mtune=native
-objects = main.o
+objects = main.o test_set_keys.o test_variable_keys.o
default: main
-release:
- $(CXX) -c $(CXXFLAGS) $(RELEASE) main.cpp
- $(CXX) -o main main.o
-
%.o: %.cpp
- $(CXX) -c $(CXXFLAGS) $<
+ $(CXX) -c $(CXXFLAGS) $(RELEASE) $<
main: $(objects)
- g++ -o $@ $^
+ $(CXX) $(LDFLAGS) -o $@ $^
clean:
rm $(objects)