Statistics
| Branch: | Revision:

janus-gateway / Makefile @ 5e9e29e0

History | View | Annotate | Download (898 Bytes)

1
CC = gcc
2
STUFF = $(shell pkg-config --cflags glib-2.0 nice libmicrohttpd jansson libssl libcrypto sofia-sip-ua ini_config) -ldl -D_GNU_SOURCE $(HAVE_PORTRANGE)
3
LIBS = $(shell pkg-config --libs glib-2.0 nice libmicrohttpd jansson libssl libcrypto sofia-sip-ua ini_config) -ldl -lsrtp -D_GNU_SOURCE $(HAVE_PORTRANGE)
4
OPTS = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused #-Werror #-O2
5
GDB = -g -ggdb #-gstabs
6
OBJS=janus.o cmdline.o config.o apierror.o rtcp.o dtls.o ice.o sdp.o utils.o
7

    
8
all: janus cmdline plugins
9

    
10
.PHONY: plugins docs
11

    
12
plugins:
13
	$(MAKE) -C plugins
14

    
15
docs:
16
	$(MAKE) -C docs
17

    
18
cmdline:
19
	rm -f cmdline.o
20
	gengetopt --set-package="janus" --set-version="0.0.1" < janus.ggo
21

    
22
%.o: %.c
23
	$(CC) $(STUFF) -fPIC $(GDB) -c $< -o $@ $(OPTS)
24

    
25
janus : $(OBJS)
26
	$(CC) $(GDB) -o janus $(OBJS) $(LIBS)
27

    
28
clean :
29
	rm -f janus *.o plugins/*.o plugins/*.so
30
	rm -rf docs/html