use kill-at otherwise symbols will not be found
[vlc/bindings/jvlc.git] / src / Makefile.am
1 libjvlc_la_SOURCES = \
2         audio-jni.cc \
3         core-jni.cc \
4         graphics-jni.cc \
5         input-jni.cc \
6         playlist-jni.cc \
7         utils.cc \
8         utils.h \
9         video-jni.cc \
10         vlm-jni.cc
11 libjvlc_la_CPPFLAGS = `$(VLC_CONFIG) --cflags pic` $(JINCLUDES)
12 libjvlc_la_LIBADD = ../../../src/libvlc-control.la $(LIBJINCLUDES)
13
14 libjvlc_a_SOURCES=$(libjvlc_la_SOURCES)
15 libjvlc_a_CPPFLAGS = `$(VLC_CONFIG) --cflags pic` $(JINCLUDES)
16 libjvlc_a_LIBADD = ../../../src/libvlc.a
17
18
19 if BUILD_JAVA
20
21 if USE_LIBTOOL
22 lib_LTLIBRARIES = libjvlc.la
23 else
24 lib_LIBRARIES = libjvlc.a
25 endif 
26
27 if HAVE_WIN32
28 DATA_noinst_libjvlc = libjvlc$(LIBEXT) libjvlc$(LIBEXT).a
29 LIBRARIES_libvlc = $(top_builddir)/src/libvlc.dll.a
30 libjvlc_a_DEPENDENCIES = libjvlc.def $(LIBRARIES_libvlc)
31 LDFLAGS_jvlc = `$(VLC_CONFIG) --libs libvlc`
32 libjvlc_DATA = libjvlc$(LIBEXT)
33
34 libjvlcdir=$(srcdir)
35
36 #libjvlc.dll.a libjvlc.def: libjvlc$(LIBEXT)
37 #       $(DLLTOOL) -z libjvlc.def -l libjvlc.dll.a -D $< $(libjvlc_a_OBJECTS)
38
39 libjvlc$(LIBEXT): $(libjvlc_a_OBJECTS) \
40                       $(libjvlc_a_DEPENDENCIES)
41                   $(CXXLINK) $(libjvlc_a_OBJECTS) -Wl,--kill-at \
42                         $(srcdir)/libjvlc.def \
43                         $(LIBRARIES_libvlc) -shared $(LIBRARIES_libvlc) $(LIBJINCLUDES) $(LDFLAGS_jvlc) \
44                         $(INCLUDED_LIBINTL)
45 # Cygwin work-around, copied by other makefiles
46                         @if test -f "$@.exe"; then mv -f "$@.exe" "$@"; fi
47
48
49 all: libjvlc.dll.a
50 endif
51
52 .PHONY: clean-local
53
54 clean-local:
55         rm -f *.o *~
56
57 endif