Files
llvm-ads/Makefile
Ronan Desplanques 63cb1842b7 Change build strategy
Before this patch, llvm-ads was using the build infrastructure that's
meant for the tools internal to the LLVM project to use. This patch
makes llvm-ads use a strategy that's more appropriate for client
applications.
2023-08-23 15:06:52 +00:00

11 lines
305 B
Makefile

OUTDIR=.
cxxflags := $(shell llvm-config --cxxflags)
llvm_ldflags := $(shell llvm-config --ldflags --libs BitReader Core Support --system-libs)
ldflags := $(llvm_ldflags) -static-libgcc -static-libstdc++
$(OUTDIR)/bin/llvm-ads: llvm-ads.cpp
mkdir -p $(OUTDIR)/bin
g++ $(cxxflags) $< $(ldflags) -o $@