carla/Util/ImageConverter/Makefile

20 lines
462 B
Makefile
Raw Normal View History

2018-01-10 20:29:52 +08:00
CXX=clang++
2017-09-20 00:46:29 +08:00
FLAGS=-Wall -Wextra -std=c++14 -fopenmp
LIBS=-lboost_system -lboost_filesystem -lboost_program_options -lpng -ljpeg -ltiff
HEADERS=*.h
SOURCES=main.cpp
EXE=image_converter
build: release
release: $(SOURCES) $(HEADERS)
@mkdir -p bin
$(CXX) $(FLAGS) -O3 -DNDEBUG -o bin/$(EXE) $(SOURCES) $(LIBS)
2017-09-20 00:46:29 +08:00
debug: $(SOURCES) $(HEADERS)
@mkdir -p bin
$(CXX) $(FLAGS) -O0 -g -D_DEBUG -o bin/$(EXE)_debug $(SOURCES) $(LIBS)
2017-09-20 00:46:29 +08:00
clean:
rm -f $(EXE) $(EXE)_debug