summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am23
1 files changed, 18 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 $@
-