Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (29 sloc) 0.765 kb
ifeq ($(MAKECMDGOALS),analyze)
CXXFLAGS := $(shell llvm-config --cxxflags) -analyze
CXX := clang++
endif
EXE := uh
CXXFLAGS := $(shell llvm-config --cxxflags)
LLVMLDFLAGS := $(shell llvm-config --ldflags --libs)
SOURCES = src/uh.cpp \
src/IncludeHandler.cpp
OBJECTS = $(SOURCES:.cpp=.o)
CLANGLIBS = -lclangRewrite \
-lclangParse \
-lclangSema \
-lclangAnalysis \
-lclangAST \
-lclangDriver \
-lclangSerialization \
-lclangFrontend \
-lclangLex \
-lclangBasic \
-lLLVMSupport \
$(EXE): $(OBJECTS)
$(CXX) $(OBJECTS) $(CLANGLIBS) $(LLVMLDFLAGS) -o src/$(EXE)
analyze: $(OBJECTS)
$(CXX) $(OBJECTS) $(CLANGLIBS) $(LLVMLDFLAGS) -o src/$(EXE)
%: %.o
$(CXX) -o $@ $< $(CLANGLIBS) $(LLVMLDFLAGS)
clean:
-rm -f $(EXES) $(OBJECTS) *~
Jump to Line
Something went wrong with that request. Please try again.