Guest User

Makefile

a guest
Nov 2nd, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.26 KB | None | 0 0
  1. CC=clang++
  2. LD=clang++
  3. export CFLAGS=`llvm-config --cxxflags`
  4. export LDFLAGS=`llvm-config --cxxflags --ldflags --libs core analysis bitwriter --system-libs`
  5.  
  6. build: test
  7.  
  8. test.o: test.cpp
  9.     $(CC) $(CFLAGS) -c $<
  10.  
  11. test: test.o
  12.     $(LD) $< $(LDFLAGS) -o $@
Advertisement
Add Comment
Please, Sign In to add comment