Statistics
| Branch: | Revision:

janus-gateway / plugins / Makefile @ 5e9e29e0

History | View | Annotate | Download (778 Bytes)

1
CC = gcc
2
STUFF = $(shell pkg-config --cflags glib-2.0 jansson sofia-sip-ua opus ogg ini_config) -ldl -D_GNU_SOURCE
3
LIBS = $(shell pkg-config --libs glib-2.0 jansson sofia-sip-ua opus ogg ini_config) -ldl -D_GNU_SOURCE
4
OPTS = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused #-Werror #-O2
5
GDB = -g -ggdb #-gstabs
6
OBJS = janus_echotest.so janus_streaming.so janus_sip.so janus_videocall.so janus_videoroom.so
7
ifeq ($(HAVE_OPUS),1)
8
	OBJS += janus_audiobridge.so
9
endif
10
ifeq ($(HAVE_OGG),1)
11
	OBJS += janus_voicemail.so
12
endif
13

    
14
all: $(OBJS)
15

    
16
%.o: %.c
17
	$(CC) $(STUFF) -shared -fPIC $(GDB) -c $< -o $@ $(OPTS)
18

    
19
%.so: %.o ../config.o ../rtcp.o ../utils.o
20
	$(CC) -shared -fPIC $(GDB) -o $@ $< ../config.o ../rtcp.o ../utils.o $(LIBS)
21

    
22
clean:
23
	rm -f *.so *.o
24