mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Update all CMakeLists.txt, Makefiles, meson.build, setup.py, and documentation files to use C++17 standard. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
35 lines
885 B
Makefile
35 lines
885 B
Makefile
CXX ?= g++
|
|
CXXFLAGS = -std=c++17 -Wall -Wextra -O2 -pthread
|
|
CXXFLAGS_DEBUG = -std=c++17 -Wall -Wextra -g -O0 -pthread -fsanitize=thread
|
|
CXXFLAGS_NO_EXCEPT = -std=c++17 -Wall -Wextra -O2 -pthread -fno-exceptions -fno-rtti
|
|
|
|
TARGET = task_queue_example
|
|
TARGET_DEBUG = task_queue_example_debug
|
|
TARGET_NO_EXCEPT = task_queue_example_no_except
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): example.cc task-queue.hh
|
|
$(CXX) $(CXXFLAGS) -o $@ example.cc
|
|
|
|
debug: $(TARGET_DEBUG)
|
|
|
|
$(TARGET_DEBUG): example.cc task-queue.hh
|
|
$(CXX) $(CXXFLAGS_DEBUG) -o $@ example.cc
|
|
|
|
no-except: $(TARGET_NO_EXCEPT)
|
|
|
|
$(TARGET_NO_EXCEPT): example.cc task-queue.hh
|
|
$(CXX) $(CXXFLAGS_NO_EXCEPT) -o $@ example.cc
|
|
|
|
run: $(TARGET)
|
|
./$(TARGET)
|
|
|
|
run-no-except: $(TARGET_NO_EXCEPT)
|
|
./$(TARGET_NO_EXCEPT)
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(TARGET_DEBUG) $(TARGET_NO_EXCEPT) test_no_exceptions
|
|
|
|
.PHONY: all debug no-except run run-no-except clean
|