diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-06 11:30:05 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-06 11:55:29 +0200 |
commit | ca9602e39f6cb360be907ecd08d0eb850d5cf879 (patch) | |
tree | 0a5ab961ada74168ca48977c7bd5b3bdad567082 /makefile | |
download | blowfish-ca9602e39f6cb360be907ecd08d0eb850d5cf879.tar.xz |
Initial commit
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..ed10a1a --- /dev/null +++ b/makefile @@ -0,0 +1,20 @@ +CXX = g++ +CXXFLAGS = -Wall -Wextra -Wpedantic -std=c++2a -g +RELEASE = -O3 -march=native -mtune=native + +objects = main.o + +default: main + +release: + $(CXX) -c $(CXXFLAGS) $(RELEASE) main.cpp + $(CXX) -o main main.o + +%.o: %.cpp + $(CXX) -c $(CXXFLAGS) $< + +main: $(objects) + g++ -o $@ $^ + +clean: + rm $(objects) |