summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
-rw-r--r--icon.bmpbin0 -> 3126 bytes
-rw-r--r--icon.icobin0 -> 6766 bytes
-rw-r--r--winres.rc1
4 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile index e7429a5..4face93 100644 --- a/Makefile +++ b/Makefile
@@ -3,6 +3,7 @@ LTARGET = build/$(PROJECT)
3WTARGET = build/$(PROJECT).exe 3WTARGET = build/$(PROJECT).exe
4CC = g++ 4CC = g++
5WINCC = i586-mingw32msvc-g++ 5WINCC = i586-mingw32msvc-g++
6WINDRES = i586-mingw32msvc-windres
6FILES = $(addprefix build/,$(wildcard *.cpp)) 7FILES = $(addprefix build/,$(wildcard *.cpp))
7MODULES = $(patsubst %.cpp,%,$(FILES)) 8MODULES = $(patsubst %.cpp,%,$(FILES))
8SOURCES = $(addsuffix .o,$(MODULES)) 9SOURCES = $(addsuffix .o,$(MODULES))
@@ -30,11 +31,14 @@ $(LTARGET): $(SOURCES) $(CIMAGES)
30$(SOURCES): build/%.o: %.cpp 31$(SOURCES): build/%.o: %.cpp
31 $(CC) -c $? -o $@ $(LINCCFL) 32 $(CC) -c $? -o $@ $(LINCCFL)
32 33
33$(WTARGET): $(WINSRC) $(CIMAGES) 34$(WTARGET): $(WINSRC) $(CIMAGES) build/winres.o
34 $(WINCC) $(WINSRC) $(CIMAGES) -o $(WTARGET) $(WINLDFL) 35 $(WINCC) $(WINSRC) $(CIMAGES) build/winres.o -o $(WTARGET) $(WINLDFL)
35 36
36$(WINSRC): build/%.owin: %.cpp 37$(WINSRC): build/%.owin: %.cpp
37 $(WINCC) -c $? -o $@ $(WINCCFL) 38 $(WINCC) -c $? -o $@ $(WINCCFL)
38 39
40build/winres.o: winres.rc
41 $(WINDRES) $? $@
42
39$(CIMAGES): build/%.bmp.o: %.bmp 43$(CIMAGES): build/%.bmp.o: %.bmp
40 objcopy --input binary --output elf32-i386 -B i386 $? $@ 44 objcopy --input binary --output elf32-i386 -B i386 $? $@
diff --git a/icon.bmp b/icon.bmp new file mode 100644 index 0000000..024cea5 --- /dev/null +++ b/icon.bmp
Binary files differ
diff --git a/icon.ico b/icon.ico new file mode 100644 index 0000000..37e9db6 --- /dev/null +++ b/icon.ico
Binary files differ
diff --git a/winres.rc b/winres.rc new file mode 100644 index 0000000..1bc463a --- /dev/null +++ b/winres.rc
@@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "icon.ico"