~ubuntu-branches/ubuntu/lucid/gbrainy/lucid

« back to all changes in this revision

Viewing changes to src/Core/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-01-12 11:21:24 UTC
  • mfrom: (13.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20100112112124-o4ztomxa0xfh2ulj
Tags: 1.30-1ubuntu1
* debian/control:
  - Revert build-depends to lucid versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CSFLAGS = -unsafe -target:library $(CSC_DEFINES)
 
2
 
 
3
TARGET = ../gbrainy.Core.dll
 
4
TARGET_CFG = ../gbrainy.Core.dll.config
 
5
 
 
6
CSFILES =  \
 
7
                AssemblyInfo.cs                 \
 
8
                Main/ArrayListIndicesRandom.cs  \
 
9
                Main/ColorPalette.cs            \
 
10
                Main/Defines.cs                 \
 
11
                Main/Game.cs                    \
 
12
                Main/GameManager.cs             \
 
13
                Main/GameSession.cs             \
 
14
                Main/GameTips.cs                \
 
15
                Main/Memory.cs                  \
 
16
                Main/PlayerHistory.cs           \
 
17
                Main/Preferences.cs             \
 
18
                Main/UpdateUIStateEventArgs.cs \
 
19
                Main/Verbal/Analogies.cs        \
 
20
                Main/Verbal/AnalogiesFactory.cs \
 
21
                Main/Verbal/AnalogiesMultipleOptions.cs \
 
22
                Main/Verbal/AnalogiesPairOfWordsCompare.cs      \
 
23
                Main/Verbal/AnalogiesPairOfWordsOptions.cs      \
 
24
                Main/Verbal/AnalogiesQuestionAnswer.cs          \
 
25
                Main/Verbal/Analogy.cs          \
 
26
                Views/CountDownView.cs          \
 
27
                Views/FinishView.cs             \
 
28
                Views/IDrawable.cs              \
 
29
                Views/IDrawRequest.cs           \
 
30
                Views/PlayerHistoryView.cs      \
 
31
                Views/ViewsControler.cs         \
 
32
                Views/WelcomeView.cs            \
 
33
                Platform/Unix.cs                \
 
34
                Libraries/CairoContextEx.cs     \
 
35
                Libraries/SVGImage.cs
 
36
 
 
37
RES = \
 
38
$(top_srcdir)/data/app-graphics/background.svg          \
 
39
$(top_srcdir)/data/app-graphics/logic-games.svg         \
 
40
$(top_srcdir)/data/app-graphics/math-games.svg          \
 
41
$(top_srcdir)/data/app-graphics/memory-games.svg        \
 
42
$(top_srcdir)/data/app-graphics/verbal-games.svg        \
 
43
$(srcdir)/gbrainy.addin.xml
 
44
 
 
45
 
 
46
REFS =  \
 
47
        -r:System \
 
48
        -r:Mono.Cairo.dll               \
 
49
        -r:Mono.Posix                   \
 
50
         $(GBRAINY_LIBS)                \
 
51
         $(MONO_ADDINS_LIBS)
 
52
 
 
53
SRCDIR_CSFILES = $(CSFILES:%=$(srcdir)/%)
 
54
RES_CSFLAGS = $(foreach res, $(RES), -resource:$(res))
 
55
 
 
56
$(TARGET): $(SRCDIR_CSFILES) $(RES)
 
57
        echo $(RES_FILES)
 
58
        $(CSC) -out:$@ $(CSFLAGS) $(REFS) $(RES_CSFLAGS) $(SRCDIR_CSFILES)
 
59
 
 
60
$(TARGET_CFG): $(srcdir)/gbrainy.Core.dll.config.in
 
61
        sed -e "s|\@pkglibdir\@|$(pkglibdir)|" \
 
62
            < $< > $@
 
63
 
 
64
all: $(TARGET) $(TARGET_CFG)
 
65
 
 
66
install-data-local: $(TARGET) $(TARGET_CFG)
 
67
        $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
 
68
        $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(pkglibdir)
 
69
        $(INSTALL_DATA) $(TARGET_CFG) $(DESTDIR)$(pkglibdir)
 
70
 
 
71
uninstall-local:
 
72
        cd $(DESTDIR)$(pkglibdir) && rm -f gbrainy.Core.dll
 
73
        cd $(DESTDIR)$(pkglibdir) && rm -f gbrainy.Core.dll.config
 
74
 
 
75
EXTRA_DIST =                    \
 
76
        $(CSFILES) $(RES) gbrainy.Core.dll.config.in
 
77
 
 
78
CLEANFILES =                            \
 
79
        $(TARGET)                       \
 
80
        $(TARGET).mdb                   \
 
81
        $(TARGET_CFG)