aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-06-08 13:25:31 +0200
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commitf0a984347c0e9c1e6efc493bbfb9b062041a9855 (patch)
tree16c918a2579c135a77ff06d85c5b679fc0d87f58 /scripts
parentrefactor: use vim.system (#4923) (diff)
downloadnvim-treesitter-f0a984347c0e9c1e6efc493bbfb9b062041a9855.tar
nvim-treesitter-f0a984347c0e9c1e6efc493bbfb9b062041a9855.tar.gz
nvim-treesitter-f0a984347c0e9c1e6efc493bbfb9b062041a9855.tar.bz2
nvim-treesitter-f0a984347c0e9c1e6efc493bbfb9b062041a9855.tar.lz
nvim-treesitter-f0a984347c0e9c1e6efc493bbfb9b062041a9855.tar.xz
nvim-treesitter-f0a984347c0e9c1e6efc493bbfb9b062041a9855.tar.zst
nvim-treesitter-f0a984347c0e9c1e6efc493bbfb9b062041a9855.zip
feat!: drop makefile support, norg parser
Norg install_info and queries are maintained by neorg. All other parsers are compatible with C++11, so fix that as standard. (Can be bumped if all supported platforms support C++14.) Remove Makefile support, as it's no longer needed.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/compile_parsers.makefile52
1 files changed, 0 insertions, 52 deletions
diff --git a/scripts/compile_parsers.makefile b/scripts/compile_parsers.makefile
deleted file mode 100644
index 020b45285..000000000
--- a/scripts/compile_parsers.makefile
+++ /dev/null
@@ -1,52 +0,0 @@
-CFLAGS ?= -Os -std=c99 -fPIC
-CXX_STANDARD ?= c++14
-CXXFLAGS ?= -Os -std=$(CXX_STANDARD) -fPIC
-LDFLAGS ?=
-SRC_DIR ?= ./src
-DEST_DIR ?= ./dest
-
-ifeq ($(OS),Windows_NT)
- SHELL := powershell.exe
- .SHELLFLAGS := -NoProfile -command
- CP := Copy-Item -Recurse -ErrorAction SilentlyContinue
- MKDIR := New-Item -ItemType directory -ErrorAction SilentlyContinue
- TARGET := parser.dll
- rmf = Write-Output $(1) | foreach { if (Test-Path $$_) { Remove-Item -Force } }
-else
- CP := cp
- MKDIR := mkdir -p
- TARGET := parser.so
- rmf = rm -rf $(1)
-endif
-
-ifneq ($(wildcard $(SRC_DIR)/*.cc),)
- LDFLAGS += -lstdc++
-endif
-
-OBJECTS := parser.o
-
-ifneq ($(wildcard $(SRC_DIR)/scanner.*),)
- OBJECTS += scanner.o
-endif
-
-all: $(TARGET)
-
-$(TARGET): $(OBJECTS)
- $(CC) $(OBJECTS) -o $(TARGET) -shared $(LDFLAGS)
-
-%.o: $(SRC_DIR)/%.c
- $(CC) -c $(CFLAGS) -I$(SRC_DIR) -o $@ $<
-
-%.o: $(SRC_DIR)/%.cc
- $(CC) -c $(CXXFLAGS) -I$(SRC_DIR) -o $@ $<
-
-clean:
- $(call rmf,$(TARGET) $(OBJECTS))
-
-$(DEST_DIR):
- @$(MKDIR) $(DEST_DIR)
-
-install: $(TARGET) $(DEST_DIR)
- $(CP) $(TARGET) $(DEST_DIR)/
-
-.PHONY: clean