-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
23 lines (18 loc) · 994 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.POSIX:
CRYSTAL = crystal
CRFLAGS = --release
LLVM_INCLUDE = /usr/lib/llvm-12/include
all: bin/c2cr
bin/c2cr: samples/c2cr.cr samples/c2cr/*.cr src/*.cr src/clang-c/*
@mkdir -p bin
$(CRYSTAL) build $(CRFLAGS) samples/c2cr.cr -o bin/c2cr
libclang: .PHONY
@mkdir -p src/clang-c/
bin/c2cr -I$(LLVM_INCLUDE) --remove-enum-prefix clang-c/BuildSystem.h > src/clang-c/BuildSystem.cr
#bin/c2cr -I$(LLVM_INCLUDE) --remove-enum-prefix clang-c/CXCompilationDatabase.h > src/clang-c/CXCompilationDatabase.cr
bin/c2cr -I$(LLVM_INCLUDE) --remove-enum-prefix clang-c/CXErrorCode.h > src/clang-c/CXErrorCode.cr
bin/c2cr -I$(LLVM_INCLUDE) --remove-enum-prefix clang-c/CXString.h > src/clang-c/CXString.cr
bin/c2cr -I$(LLVM_INCLUDE) --remove-enum-prefix clang-c/Documentation.h > src/clang-c/Documentation.cr
bin/c2cr -I$(LLVM_INCLUDE) --remove-enum-prefix clang-c/Index.h > src/clang-c/Index.cr
bin/c2cr -I$(LLVM_INCLUDE) --remove-enum-prefix clang-c/Platform.h > src/clang-c/Platform.cr
.PHONY: