Makefile with new voicetarget files too...
[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 voicetarget.c
5
6 OBJS:=$(patsubst %.c, %.o, $(SRCS))
7 #CFLAGS:=$(CFLAGS) -I. -I/data/export/proj/openssl/include/ -Wall -g -DDEBUG
8 #LDFLAGS:=$(LDFLAGS) -L/data/export/proj/openssl/lib/ -lcrypto -lssl -lconfig
9 CFLAGS:=$(CFLAGS) -I. -Wall -g
10 LDFLAGS:=$(LDFLAGS) -lcrypto -lssl -lconfig
11
12 umurmurd:google/protobuf-c/libprotobuf_c.a depend.mak $(OBJS)  
13         $(CC) $(LDFLAGS) $(OBJS) google/protobuf-c/libprotobuf_c.a -o umurmurd
14
15 google/protobuf-c/libprotobuf_c.a:
16         $(MAKE) -C google/protobuf-c/
17
18 # remove object files and executable when user executes "make clean"
19 clean:
20         $(MAKE) -C google/protobuf-c/ clean
21         rm -f *.o umurmurd 
22
23 all: umurmurd
24
25 $(OBJS): Makefile
26
27 depend.mak:
28         $(CC) -M $(SRCS) > depend.mak
29
30 include depend.mak