From 58cbc7c7f4c0339928bdb704cb34ba387f12fa97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 14 Feb 2022 18:00:33 +0100 Subject: Implement list view, "about" dialog. --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 $@ $< -- cgit v1.2.3