Modules.am 794 Bytes
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
EXTRA_DIST += MediaControl.so
6 7

nodist_SOURCES_corba = \
Olivier Aubert's avatar
Olivier Aubert committed
8 9 10
	MediaControl-common.c \
	MediaControl-skels.c \
	MediaControl.h \
11 12 13 14
	$(NULL)

ORBITIDL = orbit-idl-2

Olivier Aubert's avatar
Olivier Aubert committed
15 16 17 18 19 20
GENERATEDFILES=MediaControl-common.c MediaControl-skels.c MediaControl.h  MediaControl-imodule.c

corba.c: MediaControl.h MediaControl-common.c

$(GENERATEDFILES): MediaControl.idl
	$(ORBITIDL) --skeleton-impl MediaControl.idl
21

Olivier Aubert's avatar
Olivier Aubert committed
22 23
MediaControl-imodule.c:
	$(ORBITIDL) --imodule MediaControl.idl
24

Olivier Aubert's avatar
Olivier Aubert committed
25 26 27
MediaControl.so: MediaControl-imodule.c
	$(CC) -fPIC -o MediaControl-imodule.o -c MediaControl-imodule.c `pkg-config --cflags ORBit-2.0`
	$(CC) -shared -o $@ MediaControl-imodule.o `pkg-config --libs ORBit-2.0`
28 29

clean:
Olivier Aubert's avatar
Olivier Aubert committed
30
	$(RM) -f $(GENERATEDFILES)
31