1 SRCS:=client.c main.c messages.c pds.c server.c ssl.c log.c conf.c crypt.c \
2 timer.c messagehandler.c channel.c Mumble.pb-c.c voicetarget.c
4 OBJS:=$(patsubst %.c, %.o, $(SRCS))
6 # **** Stuff used for debugging ******
8 #EXTRA_CFLAGS:=$(CFLAGS) -I/data/export/proj/openssl/include/
9 #EXTRA_LDFLAGS:=$(LDFLAGS) -L/data/export/proj/openssl/lib/ -lcrypto -lssl
12 # CFLAGS:=$(CFLAGS) -DDEBUG -g
13 # ********** Debug stuff END ************
16 # Build support and link to PolarSSL
17 # If PolarSSL is in a nonstandard place.
18 # POLARSSL_LIB:=../../../../polarssl/polarssl-0.12.1/library/libpolarssl.a
19 # SSL_LIB:=$(POLARSSL_LIB) # If statically linking
20 # POLARSSL_INCLUDE:=../../../../polarssl/polarssl-0.12.1/include
21 # EXTRA_CFLAGS:=-DUSE_POLARSSL -I$(POLARSSL_INCLUDE)
22 # EXTRA_LDLAGS:=-lpolarssl
25 # OpenSSL - usually installed at a standard place
27 # EXTRA_LDFLAGS:=-lcrypto -lssl
29 CFLAGS:=$(CFLAGS) -I. -Wall $(EXTRA_CFLAGS)
30 LDFLAGS:=$(EXTRA_LDFLAGS) $(LDFLAGS) -lconfig
32 umurmurd:google/protobuf-c/libprotobuf_c.a $(OBJS)
33 $(CC) $(LDFLAGS) $(OBJS) $(SSL_LIB) google/protobuf-c/libprotobuf_c.a -o umurmurd
35 google/protobuf-c/libprotobuf_c.a:
36 $(MAKE) -C google/protobuf-c/
39 $(MAKE) -C google/protobuf-c/ clean