~hyuchia/pantheon-mail/fix-1562958

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Jim Nelson
  • Date: 2011-04-11 23:16:21 UTC
  • Revision ID: git-v1:e3cab0804b129c2d69e9ec8bed28d2369f68a1c0
Email client ho!

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
PROGRAM = geary
 
2
BUILD_ROOT = 1
 
3
 
 
4
VALAC := valac
 
5
 
 
6
APPS := console syntax
 
7
 
 
8
ENGINE_SRC := \
 
9
        src/engine/state/Machine.vala \
 
10
        src/engine/state/MachineDescriptor.vala \
 
11
        src/engine/state/Mapping.vala \
 
12
        src/engine/imap/ClientConnection.vala \
 
13
        src/engine/imap/ClientSession.vala \
 
14
        src/engine/imap/Parameter.vala \
 
15
        src/engine/imap/Tag.vala \
 
16
        src/engine/imap/Command.vala \
 
17
        src/engine/imap/Commands.vala \
 
18
        src/engine/imap/Serializable.vala \
 
19
        src/engine/imap/Serializer.vala \
 
20
        src/engine/imap/Deserializer.vala \
 
21
        src/engine/imap/Error.vala \
 
22
        src/engine/util/string.vala
 
23
 
 
24
CONSOLE_SRC := \
 
25
        src/console/main.vala
 
26
 
 
27
SYNTAX_SRC := \
 
28
        src/tests/syntax.vala
 
29
 
 
30
ALL_SRC := $(ENGINE_SRC) $(CONSOLE_SRC) $(SYNTAX_SRC)
 
31
 
 
32
EXTERNAL_PKGS := \
 
33
        gio-2.0 \
 
34
        gee-1.0 \
 
35
        gtk+-2.0
 
36
 
 
37
.PHONY: all
 
38
all: $(APPS)
 
39
 
 
40
.PHONY: clean
 
41
clean: 
 
42
        rm -f $(ALL_SRC:.vala=.c)
 
43
        rm -f $(APPS)
 
44
 
 
45
console: $(ENGINE_SRC) $(CONSOLE_SRC) Makefile
 
46
        $(VALAC) --save-temps -g $(foreach pkg,$(EXTERNAL_PKGS),--pkg=$(pkg)) \
 
47
                $(ENGINE_SRC) $(CONSOLE_SRC) \
 
48
                -o $@
 
49
 
 
50
syntax: $(ENGINE_SRC) $(SYNTAX_SRC) Makefile
 
51
        $(VALAC) --save-temps -g $(foreach pkg,$(EXTERNAL_PKGS),--pkg=$(pkg)) \
 
52
                $(ENGINE_SRC) $(SYNTAX_SRC) \
 
53
                -o $@
 
54