mirror of
https://github.com/AdaCore/llvm-ads.git
synced 2026-02-12 13:53:27 -08:00
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.
11 lines
305 B
Makefile
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 $@
|