aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-21 02:05:06 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-21 02:05:06 +0200
commit801c10f07d1c92e1b1b89d8a30cb0cf86745de31 (patch)
treee83811886dc14413330b1acf25f49c0ba7884609
parent07bde9f8575701bd0db60baf71aca2465361ff64 (diff)
downloadEpisodeBrowser-801c10f07d1c92e1b1b89d8a30cb0cf86745de31.tar.gz
Makefile: Include and link to libxml2.
-rw-r--r--.dir-locals.el3
-rw-r--r--Makefile7
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"