From 801c10f07d1c92e1b1b89d8a30cb0cf86745de31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 21 Aug 2022 02:05:06 +0200 Subject: Makefile: Include and link to libxml2. --- .dir-locals.el | 3 ++- Makefile | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.dir-locals.el b/.dir-locals.el index 18eda90..65d846b 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1,5 +1,6 @@ ((nil . ((compile-command . "make -j -O -k "))) (c-mode . ((mode . c++))) - (c++-mode . ((flycheck-gcc-include-path . ("C:/Program Files/swipl/include")) + (c++-mode . ((flycheck-gcc-include-path . ("C:/Program Files/swipl/include" + "C:/msys64/mingw64/include/libxml2")) (flycheck-gcc-definitions . ("UNICODE" "_UNICODE")) (flycheck-gcc-language-standard . "c++17")))) diff --git a/Makefile b/Makefile index d2c6a2f..e5c2c14 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,11 @@ PL = pl/cfg.pl pl/episode_data.pl pl/local_episodes.pl pl/track_episodes.pl CL = swipl-ld CLFLAGS = -DUNICODE -D_UNICODE -CLFLAGS += -cc-options,-std=c++17 -O2 -CLFLAGS += -Wall -Wextra -Wpedantic -Wno-missing-field-initializers -Wno-parentheses -CLFLAGS += -ld-options,-mwindows,-static-libstdc++ -lcomctl32 -lwininet CLFLAGS += -DDEBUG +CLFLAGS += -cc-options,-std=c++17 -O0 +CLFLAGS += -ld-options,-mwindows,-static-libstdc++ -lcomctl32 -lwininet -llibxml2 +CLFLAGS += -IC:/msys64/mingw64/include/libxml2 +CLFLAGS += -Wall -Wextra -Wpedantic -Wno-missing-field-initializers -Wno-parentheses all: showdeps b/$(EXE) cp b/$(EXE) "C:\Users\John\Desktop\Delat" -- cgit v1.2.3