diff options
author | John Ankarström <john@ankarstrom.se> | 2022-02-14 18:00:33 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-02-14 18:00:33 +0100 |
commit | 58cbc7c7f4c0339928bdb704cb34ba387f12fa97 (patch) | |
tree | fccb8e892fb242f5be0a5d5e82e6450764a4ff9a /Makefile | |
parent | 92f7852b6979239214848b7ebb4046d52e4aba06 (diff) | |
download | EpisodeBrowser-58cbc7c7f4c0339928bdb704cb34ba387f12fa97.tar.gz |
Implement list view, "about" dialog.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 $@ $< |