summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-07-13 14:51:04 +0000
committerStijn Buys <ingar@osirion.org>2013-07-13 14:51:04 +0000
commit13393a3a2c30abac42c97fd37afdbdcd9a3a111e (patch)
tree15779c339e053d5981beee3a6976bfcf1cd1169b /src
parent9a0cdc257205b738a936df5d234f8d3f4268d5e3 (diff)
Adds a windows EXE icon.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am23
-rw-r--r--src/icon.rc2
2 files changed, 20 insertions, 5 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index f5a5841..5c329b4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,3 +1,12 @@
+SUFFIXES=rc
+# This rule lets GNU make create any moc_*.cpp from the equivalent *.h
+moc_%.cc: %.h
+ moc $< -o $@
+
+# This rule lets GNU make compile *.rc windows resource files
+.rc.o:
+ windres $< -o $@
+
bin_PROGRAMS = sudokusolver
# Project C++ source files
@@ -8,14 +17,18 @@ sudokusolver_SOURCES = \
solverwindow.cc \
sudoku.cc \
sudokuwidget.cc
+
+EXTRA_sudokusolver_SOURCES = \
+ icon.rc
+
+sudokusolver_DEPENDENCIES = \
+ $(EXEICON)
+sudokusolver_LDADD =\
+ $(EXEICON)
+
# moc generated C++ source files
nodist_sudokusolver_SOURCES = \
moc_mainwindow.cc \
moc_solverwindow.cc \
moc_sudokuwidget.cc
-
-# This rule lets GNU make create any moc_*.cpp from the equivalent *.h
-moc_%.cc: %.h
- moc $< -o $@
-
diff --git a/src/icon.rc b/src/icon.rc
new file mode 100644
index 0000000..fb7c0e1
--- /dev/null
+++ b/src/icon.rc
@@ -0,0 +1,2 @@
+101 ICON icon.ico
+