aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-11-08 20:34:13 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-11-08 20:34:13 +0200
commit51528ecf3d90d09351322e172d91eed0cb45b2e7 (patch)
tree270b22937ccf770a70b287730e4113d1b934ac09 /makefile
parentAdd compile-time key length check (diff)
downloadblowfish-51528ecf3d90d09351322e172d91eed0cb45b2e7.tar.xz
Add more test vectorsHEADmaster
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)