aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-02-14 18:00:33 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-02-14 18:00:33 +0100
commit58cbc7c7f4c0339928bdb704cb34ba387f12fa97 (patch)
treefccb8e892fb242f5be0a5d5e82e6450764a4ff9a /Makefile
parent92f7852b6979239214848b7ebb4046d52e4aba06 (diff)
downloadEpisodeBrowser-58cbc7c7f4c0339928bdb704cb34ba387f12fa97.tar.gz
Implement list view, "about" dialog.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bf04586..c5e8670 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,14 @@
PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
INPUTS = $(PROJECT_ROOT)win.c
+INPUTS += resource.obj
INPUTS += $(PROJECT_ROOT)track_episodes.pl
INPUTS += $(PROJECT_ROOT)local_episodes.pl
INPUTS += $(PROJECT_ROOT)episode_data.pl
+CFLAGS += -v -cc-options,-mwindows,-municode -DUNICODE -D_UNICODE
+LDFLAGS += -lcomctl32 -lgdi32
+
ifeq ($(BUILD_MODE),debug)
CFLAGS += -g
else ifeq ($(BUILD_MODE),run)
@@ -21,9 +25,12 @@ endif
all: episode_browser.exe
episode_browser.exe: $(INPUTS)
- swipl-ld -v $(CFLAGS) $(LDFLAGS) -goal true -o $@ $(INPUTS)
+ swipl-ld $(CFLAGS) $(LDFLAGS) -goal true -o $@ $(INPUTS)
$(EXTRA_CMDS)
+resource.obj: $(PROJECT_ROOT)resource.h $(PROJECT_ROOT)resource.rc
+ windres -i $(PROJECT_ROOT)resource.rc -o resource.obj
+
#%.o: $(PROJECT_ROOT)%.c
# $(CC) -c $(CFLAGS) -o $@ $<