Revision 5e9e29e0 plugins/Makefile

View differences:

plugins/Makefile
3 3
LIBS = $(shell pkg-config --libs glib-2.0 jansson sofia-sip-ua opus ogg ini_config) -ldl -D_GNU_SOURCE
4 4
OPTS = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused #-Werror #-O2
5 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
6 13

  
7
all: janus_echotest.so janus_streaming.so janus_sip.so janus_videocall.so janus_audiobridge.so janus_videoroom.so janus_voicemail.so
14
all: $(OBJS)
8 15

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

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

  
15 22
clean:
16 23
	rm -f *.so *.o

Also available in: Unified diff