Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created May 15, 2019 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatalnk/76cb4fce29e130e161e6ae8d80a0424a to your computer and use it in GitHub Desktop.
Save whatalnk/76cb4fce29e130e161e6ae8d80a0424a to your computer and use it in GitHub Desktop.
Makefile for clang++ (AtCoder C++14 / Clang 3.8)
CXX = clang++-3.9
INCDIR = -I /usr/include/c++/v1 -I /home/linuxbrew/.linuxbrew/opt/boost@1.60/include
CFLAGS = -O2
LIBS = -L /usr/lib -L /home/linuxbrew/.linuxbrew/opt/boost@1.60/lib
OBJS = a.out
STD = c++14
STDLIB = libc++
WARNS = -Werror -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic
a.out: hello.cpp
$(CXX) $(INCDIR) $(LIBS) -std=$(STD) -stdlib=$(STDLIB) $(CFLAGS) $(WARNS) -o $(OBJS) $<
clean:
rm *.out
@whatalnk
Copy link
Author

WSL Ubuntu bionic

sudo apt install clang-3.9 libc++-dev libc++abi-dev clang-format-3.9
brew install boost@1.60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment