summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile8
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