Makefile.am 2.95 KB
Newer Older
1 2 3 4
###############################################################################
# Building the Activex plugin
###############################################################################

5 6
AUTOMAKE_OPTIONS = subdir-objects

7 8
MOSTLYCLEANFILES = axvlc.inf axvlc_rc.rc
EXTRA_DIST = $(DIST_rsrc) $(DIST_misc)
9

10 11 12 13 14 15 16 17 18 19 20 21 22
DIST_rsrc = \
    axvlc_rc.rc.in \
    $(NULL)


DIST_misc = \
    axvlc.inf.in \
    axvlc.def \
    axvlc.dll.manifest \
    axvlc.idl \
    axvlc.tlb \
    inplace.bmp \
    vlc16x16.bmp \
23
    README.TXT \
24 25 26 27 28
    $(NULL)


lib_LTLIBRARIES = axvlc.la

29 30
AM_CPPFLAGS = $(LIBVLC_CFLAGS) -DUNICODE -D_UNICODE -D_MIDL_USE_GUIDDEF_ -I$(top_srcdir)/vlcpp
AM_CXXFLAGS = ${CXXFLAGS}
31 32

axvlc_la_SOURCES = \
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
    main.cpp \
    utils.cpp \
    utils.h \
    olecontrol.cpp \
    olecontrol.h \
    oleinplaceactiveobject.cpp \
    oleinplaceactiveobject.h \
    oleinplaceobject.cpp \
    oleinplaceobject.h \
    oleobject.cpp \
    oleobject.h \
    persistpropbag.cpp \
    persistpropbag.h \
    persiststorage.cpp \
    persiststorage.h \
    persiststreaminit.cpp \
    persiststreaminit.h \
    provideclassinfo.cpp \
    provideclassinfo.h \
    connectioncontainer.cpp \
    connectioncontainer.h \
    objectsafety.cpp \
    objectsafety.h \
56 57
    dataobject.cpp \
    dataobject.h \
58 59
    viewobject.cpp \
    viewobject.h \
60 61
    supporterrorinfo.cpp \
    supporterrorinfo.h \
62 63
    vlccontrol2.cpp \
    vlccontrol2.h \
64 65 66
    plugin.cpp \
    plugin.h \
    axvlc_idl.c \
67
    axvlc_idl.h
68

69
axvlc_la_DEPENDENCIES = $(srcdir)/axvlc.def $(DATA_axvlc_rc)
70
axvlc_la_LDFLAGS = -Wl,$(srcdir)/axvlc.def -Wl,$(DATA_axvlc_rc) \
71 72
    -no-undefined -avoid-version -module \
    -Wc,--static -Wc,-static-libgcc
73 74
axvlc_la_LIBADD = ../common/libvlcplugin_common.la \
	$(LIBVLC_LIBS) $(ACTIVEX_LIBS)
75

76

77 78
DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
79
noinst_axvlc_rcdir = 
80
axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb
81
	$(WINDRES) --include-dir $(srcdir) -i $< -o $@
82

83 84

DATA_axvlc_tlb = $(noinst_axvlc_tlb_DATA)
85
noinst_axvlc_tlb_DATA = axvlc.tlb
86
noinst_axvlc_tlbdir =
87 88 89 90 91 92 93

if HAS_MIDL_COMPILER

axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
	$(MIDL) -Oicf -error all -env win32 -tlb axvlc.tlb -iid axvlc_idl.c -h axvlc_idl.h axvlc.idl

clean-tlb:
94
	rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
95

96 97 98
else
if HAS_WIDL_COMPILER

99 100
WINE_SDK_PATH ?= /usr/include/wine/windows

101
stdole2.tlb stdole2_idl.c stdole2_idl.h: $(WINE_SDK_PATH)/stdole2.idl
102
	$(WIDL) $(WIDLFLAGS) -I$(WINE_SDK_PATH) -t -u -h -T stdole2.tlb -U stdole2_idl.c -H stdole2_idl.h $<
103 104

axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl stdole2.tlb
105
	$(WIDL) $(WIDLFLAGS) -I$(WINE_SDK_PATH) -I. -t -u -h -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h $<
106 107

clean-tlb:
108
	rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h stdole2.tlb stdole2_idl.c stdole2_idl.h
109

110 111 112 113
else

clean-tlb:

114
endif
115 116 117 118 119 120
endif

###############################################################################
# Clean rules
###############################################################################

121
clean-local: clean-tlb