ref: 5fa52aac92946e20c974954f9790c45749ed8d59
parent: ee5fc884bd37db9cba56d603b8d4e30b0cc78083
author: Russ Cox <rsc@swtch.com>
date: Mon Nov 7 22:12:41 EST 2005
windows icon
binary files /dev/null b/9ball.ico differ
--- /dev/null
+++ b/9ball.rc
@@ -1,0 +1,1 @@
+IDI_ICON1 ICON DISCARDABLE "9ball.ico"
--- a/Make.win32
+++ b/Make.win32
@@ -9,6 +9,7 @@
CC=$(MING)gcc
AS=$(MING)as
RANLIB=$(MING)ranlib
+WINDRES=$(MING)windres
CFLAGS=-Wall -Wno-missing-braces -I$(ROOT)/include -I$(ROOT) -I$(ROOT)/kern -c -D_X86_ -DIS_32 -DWINDOWS -O2
O=o
FS=fs-win32
@@ -18,6 +19,7 @@
LDFLAGS=-mwindows
LDADD=-lkernel32 -ladvapi32 -lgdi32 -lmpr -lwsock32 -lmsvcrt -lmingw32
TARG=drawterm.exe
+XOFILES=9ball.$O
# Windows via MSVC
#AR=???
@@ -34,4 +36,7 @@
# for root
libmachdep.a:
(cd win32-386; make)
+
+9ball.$O: 9ball.rc 9ball.ico
+ $(WINDRES) -i 9ball.rc -o 9ball.o
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@
secstore.$O\
latin1.$O\
$(OS)-factotum.$O\
+ $(XOFILES)\
LIBS1=\
kern/libkern.a\