aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMikkel Hjortshøj <me@thisdrunkdane.io>2021-04-30 22:50:14 +0200
committerMikkel Hjortshøj <me@thisdrunkdane.io>2021-04-30 22:50:14 +0200
commit0e972296a48791f87ef656e621816c571e0cd822 (patch)
tree690fd25d0d7ed263ff184eba50deede17b08cb7a /Makefile
parent5ec82623ab7e30ed595e30e97e07e241225ceef8 (diff)
Change non-target indentation in Makefile to spaces to fix make error
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 17 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index c8199b01e..6633438bc 100644
--- a/Makefile
+++ b/Makefile
@@ -8,26 +8,26 @@ CC=clang
OS=$(shell uname)
ifeq ($(OS), Darwin)
- LLVM_CONFIG=llvm-config
+ LLVM_CONFIG=llvm-config
- LDFLAGS:=$(LDFLAGS) -liconv
- CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags)
- LDFLAGS:=$(LDFLAGS) -lLLVM-C
+ LDFLAGS:=$(LDFLAGS) -liconv
+ CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags)
+ LDFLAGS:=$(LDFLAGS) -lLLVM-C
endif
ifeq ($(OS), Linux)
- LLVM_CONFIG=llvm-config-11
- ifneq ($(shell which llvm-config-11 2>/dev/null),)
- LLVM_CONFIG=llvm-config-11
- else
- ifneq ($(shell llvm-config --version | grep '^11\.'),)
- LLVM_CONFIG=llvm-config
- else
- $(error "Requirement: llvm-config must be version 11")
- endif
- endif
-
- CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags)
- LDFLAGS:=$(LDFLAGS) $(shell $(LLVM_CONFIG) --libs core native --system-libs)
+ LLVM_CONFIG=llvm-config-11
+ ifneq ($(shell which llvm-config-11 2>/dev/null),)
+ LLVM_CONFIG=llvm-config-11
+ else
+ ifneq ($(shell llvm-config --version | grep '^11\.'),)
+ LLVM_CONFIG=llvm-config
+ else
+ $(error "Requirement: llvm-config must be version 11")
+ endif
+ endif
+
+ CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags)
+ LDFLAGS:=$(LDFLAGS) $(shell $(LLVM_CONFIG) --libs core native --system-libs)
endif
all: debug demo