Files
tinyusdz/sandbox/task-queue/Makefile
Syoyo Fujita 3c1b1735b7 raise C++ version requirement from C++14 to C++17
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>
2026-01-08 03:39:41 +09:00

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