-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from jmont-dev/cleanup
Clean up warnings and unused parameters.
- Loading branch information
Showing
5 changed files
with
33 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
# Check if a default C++ compiler exists, otherwise use g++ | ||
CXX ?= g++ | ||
CXXFLAGS = -Wall -Wextra -Wpedantic | ||
|
||
CREATE_BUILD_DIR = mkdir -p build; cp -n llama.jpg build; | ||
|
||
all: examples test-cpp11 test-cpp14 test-cpp20 | ||
examples: examples/main.cpp | ||
build: | ||
mkdir -p build | ||
$(CXX) examples/main.cpp -Iinclude -o build/examples -std=c++11 -pthread -latomic | ||
ifeq ($(OS),Windows_NT) | ||
if not exist "build/llama.jpg" copy "llama.jpg" "build" | ||
else | ||
cp -n llama.jpg build | ||
endif | ||
examples: build examples/main.cpp | ||
$(CXX) $(CXXFLAGS) examples/main.cpp -Iinclude -o build/examples -std=c++11 -pthread -latomic | ||
test: test-cpp11 | ||
test-cpp11: test/test.cpp | ||
mkdir -p build | ||
$(CXX) test/test.cpp -Iinclude -Itest -o build/test -std=c++11 -pthread -latomic | ||
test-cpp14: test/test.cpp | ||
mkdir -p build | ||
$(CXX) test/test.cpp -Iinclude -Itest -o build/test-cpp14 -std=c++14 -pthread -latomic | ||
test-cpp20: test/test.cpp | ||
mkdir -p build | ||
$(CXX) test/test.cpp -Iinclude -Itest -o build/test-cpp20 -std=c++2a -pthread -latomic | ||
test-cpp11: build test/test.cpp | ||
$(CXX) $(CXXFLAGS) test/test.cpp -Iinclude -Itest -o build/test -std=c++11 -pthread -latomic | ||
test-cpp14: build test/test.cpp | ||
$(CXX) $(CXXFLAGS) test/test.cpp -Iinclude -Itest -o build/test-cpp14 -std=c++14 -pthread -latomic | ||
test-cpp20: build test/test.cpp | ||
$(CXX) $(CXXFLAGS) test/test.cpp -Iinclude -Itest -o build/test-cpp20 -std=c++2a -pthread -latomic | ||
clean: | ||
rm -rf build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters