From f0a984347c0e9c1e6efc493bbfb9b062041a9855 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 8 Jun 2023 13:25:31 +0200 Subject: 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. --- scripts/compile_parsers.makefile | 52 ---------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 scripts/compile_parsers.makefile (limited to 'scripts') 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 -- cgit v1.2.3-70-g09d2