loader doesn't use libdl (and libdl doesn't exist on FreeBSD)
[vlc.git] / libs / loader / Makefile.am
1
2 # Makefile to build MPlayer's DLL loader
3 # from VLC trunk
4 #
5 # by RĂ©mi Denis-Courmont <rem # videolan.org>
6 # $Id$
7 #
8 # All other files in this directory (and subdirectories) are copyrighted
9 # by their respective owner(s).
10 #
11
12 if LOADER
13 noinst_LTLIBRARIES = libloader.la
14 endif
15
16 # TODO: real check for vsscanf() and <sys/mmap.h>
17 AM_CPPFLAGS = -D__WINE__ -DHAVE_SYS_MMAN_H=1 -DHAVE_VSSCANF=1 \
18         -DWIN32_PATH=\"\" -DTRACE\(...\)=\(void\)0
19 AM_CFLAGS = -fno-PIC `$(top_builddir)/vlc-config --cflags` -U_FILE_OFFSET_BITS \
20         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
21
22 noinst_HEADERS = com.h driver.h ext.h ldt_keeper.h loader.h registry.h \
23         win32.h wineacm.h wrapper.h qtx/qtxsdk/components.h \
24         wine/avifmt.h wine/basetsd.h wine/debugtools.h wine/driver.h \
25         wine/heap.h wine/mmreg.h wine/module.h wine/msacmdrv.h wine/msacm.h \
26         wine/pe_image.h wine/poppack.h wine/pshpack1.h wine/pshpack2.h \
27         wine/vfw.h wine/winbase.h wine/windef.h wine/winerror.h \
28         wine/winestring.h wine/winnt.h wine/winreg.h wine/winuser.h
29
30 libloader_la_SOURCES = ldt_keeper.c pe_image.c module.c ext.c win32.c \
31         driver.c pe_resource.c resource.c registry.c afl.c vfl.c \
32         wrapper.S stubs.s kludge.c
33 libloader_la_LIBADD = -lpthread
34