diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-08 20:34:13 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-08 20:34:13 +0200 |
commit | 51528ecf3d90d09351322e172d91eed0cb45b2e7 (patch) | |
tree | 270b22937ccf770a70b287730e4113d1b934ac09 /makefile | |
parent | Add compile-time key length check (diff) | |
download | blowfish-51528ecf3d90d09351322e172d91eed0cb45b2e7.tar.xz |
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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) |