git repos / blockattack-game

commit fb6646e4

sago007 · 2014-09-11 16:30
fb6646e4e5501c7a8ff894284c4eedc837cc7784 patch · browse files
parent 70f47bf7da2333f0c50d938b8763894bec80b573

Windows icon

Changed files

M source/code/Makefile before
A source/code/winicon.rc
diff --git a/source/code/Makefile b/source/code/Makefile index 4ed9618..dbe78f6 100644 --- a/source/code/Makefile +++ b/source/code/Makefile
@@ -45,10 +45,17 @@ BASE_LIBS += -lphysfs
OFILES=main.o highscore.o ReadKeyboard.o joypad.o listFiles.o replay.o common.o stats.o CppSdlException.o CppSdlImageHolder.o Libs/NFont.o MenuSystem.o menudef.o
+ifeq ($(CROSS),i686-pc-mingw32-)
+OFILES += winicon.res
+endif
+
$(BINARY): $(OFILES)
$(CXX) -O -o $(BINARY) $(OFILES) $(BASE_LIBS)
#-lphysfs
+winicon.res: winicon.rc
+ $(CROSS)windres winicon.rc -O coff -o winicon.res
+
%.o : %.cpp
$(CXX) -MD $(BASE_CFLAGS) -c -o $@ $<
@cp $*.d $*.P; \
diff --git a/source/code/winicon.rc b/source/code/winicon.rc new file mode 100644 index 0000000..0e5795c --- /dev/null +++ b/source/code/winicon.rc
@@ -0,0 +1 @@
+101 ICON "../../Game/gfx/blockAttack.ico"