forked from mumble-voip/grumble
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (49 loc) · 1.04 KB
/
Makefile
File metadata and controls
59 lines (49 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright (c) 2010 The Grumble Authors
# The use of this source code is goverened by a BSD-style
# license that can be found in the LICENSE-file.
include $(GOROOT)/src/Make.inc
TARG = grumble
PACKAGES = \
pkg/packetdatastream \
pkg/cryptstate \
pkg/mumbleproto \
pkg/blobstore \
pkg/sqlite
GCFLAGS = \
-Ipkg/cryptstate/_obj \
-Ipkg/packetdatastream/_obj \
-Ipkg/mumbleproto/_obj \
-Ipkg/blobstore/_obj \
-Ipkg/sqlite/_obj
LDFLAGS = \
-Lpkg/cryptstate/_obj \
-Lpkg/packetdatastream/_obj \
-Lpkg/mumbleproto/_obj \
-Lpkg/blobstore/_obj \
-Lpkg/sqlite/_obj
GOFILES = \
grumble.go \
message.go \
tlsserver.go \
server.go \
client.go \
channel.go \
acl.go \
group.go \
user.go \
murmurdb.go \
freeze.go
.PHONY: grumble
grumble: pkg
$(GC) $(GCFLAGS) -o $(TARG).$(O) $(GOFILES)
$(LD) $(LDFLAGS) -o $(TARG) $(TARG).$(O)
.PHONY: pkg
pkg:
for dir in $(PACKAGES); do $(MAKE) -C $$dir; done
.PHONY: pkgclean
pkgclean:
for dir in $(PACKAGES); do $(MAKE) -C $$dir clean; done
.PHONY: clean
clean: pkgclean
rm -f grumble
rm -f *.$(O)