Mumble 1.2.x compatible server. Kind of working, at least in server loopback mode.
[umurmur.git] / src / Makefile
1 # build helloworld executable when user executes "make" 
2
3 SRCS:=client.c main.c messages.c pds.c server.c ssl.c log.c conf.c crypt.c \
4         timer.c messagehandler.c channel.c Mumble.pb-c.c
5
6 OBJS:=$(patsubst %.c, %.o, $(SRCS))
7 CFLAGS:=$(CFLAGS) -I. -Wall -g -DDEBUG
8 LDFLAGS:=$(LDFLAGS) -L/data/export/proj/protobuf/lib -lcrypto -lssl -lconfig
9
10 umurmurd:google/protobuf-c/libprotobuf_c.a depend.mak $(OBJS)  
11         $(CC) $(LDFLAGS) $(OBJS) google/protobuf-c/libprotobuf_c.a -o umurmurd
12
13 google/protobuf-c/libprotobuf_c.a:
14         $(MAKE) -C google/protobuf-c/
15
16 # remove object files and executable when user executes "make clean"
17 clean:
18         $(MAKE) -C google/protobuf-c/ clean
19         rm -f *.o umurmurd 
20
21 all: umurmurd
22
23 $(OBJS): Makefile
24
25 depend.mak:
26         $(CC) -M $(SRCS) > depend.mak
27
28 include depend.mak