From 78fa8d51fd08795dd7b3a5d4a2f675f7d213ebf1 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Tue, 27 Jul 2021 18:06:24 -0700 Subject: Embed icon in windows --- .gitignore | 1 + Makefile | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e623a82..ee250b8 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ !unix/*.c !windows !windows/*.c +!windows/make_icon.rc diff --git a/Makefile b/Makefile index 4441749..2723efc 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,11 @@ PREFIX = /usr/local ifeq ($(OS),Windows_NT) -$(NAME): cache.o draw.o read_cfg.o group.o entry.o windows/cache.o windows/draw.o windows/read_cfg.o - $(CC) -o $(NAME) cache.o draw.o read_cfg.o group.o entry.o windows/cache.o windows/draw.o windows/read_cfg.o $(LIBS) +$(NAME): cache.o draw.o read_cfg.o group.o entry.o windows/cache.o windows/draw.o windows/read_cfg.o windows/make_icon.res + $(CC) -o $(NAME) cache.o draw.o read_cfg.o group.o entry.o windows/cache.o windows/draw.o windows/read_cfg.o windows/make_icon.res $(LIBS) + +windows/make_icon.res: windows/make_icon.rc + windres windows/make_icon.rc -O coff -o windows/make_icon.res windows/draw.o: windows/draw.c include/draw.h windows/read_cfg.o: windows/read_cfg.c include/read_cfg.h @@ -35,6 +38,7 @@ clean: rm -f *.o rm -f unix/*.o rm -f windows/*.o + rm -f windows/*.res rm -f $(NAME) rm -f $(NAME).exe -- cgit