Modules.am 1.21 KB
Newer Older
1 2
## corba module declaration

Olivier Aubert's avatar
Olivier Aubert committed
3 4
SOURCES_corba = corba.c mediacontrol-core.c mediacontrol-plugin.c

5
nodist_SOURCES_corba = \
Olivier Aubert's avatar
Olivier Aubert committed
6 7
	MediaControl-common.c \
	MediaControl-skels.c \
8 9 10
	MediaControl-skelimpl.c \
	MediaControl-stubs.c \
	MediaControl-imodule.c \
Olivier Aubert's avatar
Olivier Aubert committed
11
	MediaControl.h \
12 13
	$(NULL)

14 15
corbaidldir = $(datadir)/idl
corbaidl_DATA = MediaControl.idl
16

17 18 19
## orbittypelibdir = $(libdir)/orbit-2.0
orbittypelibdir = $(libdir)/advene
orbittypelib_DATA = MediaControl.so
Olivier Aubert's avatar
Olivier Aubert committed
20

21
EXTRA_DIST += $(corbaidl_DATA)
Olivier Aubert's avatar
Olivier Aubert committed
22

23 24 25 26 27 28
ORBIT_IDL=$(shell pkg-config --variable=orbit_idl ORBit-2.0)

GENERATEDFILES = MediaControl-common.c MediaControl-skels.c MediaControl.h
BUILT_SOURCES += $(GENERATEDFILES) MediaControl-imodule.c

corba.c: MediaControl.h
29

30 31
## Needed for both MediaControl.so and libcorba_plugin compilation
INCLUDES = $(LIBMEDIACONTROL_CFLAGS)
32

33
## MediaControl.so rules
Olivier Aubert's avatar
Olivier Aubert committed
34
MediaControl.so: MediaControl-imodule.c
35 36 37 38 39 40 41 42
	$(CC) -fPIC -o MediaControl-imodule.o -c $< $(LIBMEDIACONTROL_CFLAGS)
	$(CC) -shared -o $@ MediaControl-imodule.o $(LIBMEDIACONTROL_LIBS)

$(GENERATEDFILES): MediaControl.idl
	$(ORBIT_IDL) --skeleton-impl $(corbaidl_DATA)

MediaControl-imodule.c: $(corbaidl_DATA)
	$(ORBIT_IDL) --imodule $<
43 44

clean:
Olivier Aubert's avatar
Olivier Aubert committed
45
	$(RM) -f $(GENERATEDFILES)
46
	$(RM) -f MediaControl-imodule.c