Jun 15, 2014

[Make] Use 'make' without makefile

C++ Trick: Use Make Without Makefiles
set these in the env:
 
CXXFLAGS='-std=c++1y -stdlib=libc++'
With the src code file name like:
tmp.cpp
then just use:
make tmp
# c++ -std=c++1y -stdlib=libc++ tmp.cpp -o tmp

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.