aboutsummaryrefslogtreecommitdiff
path: root/lib/stsound/StSoundLibrary/Makefile.in
blob: b75fda3ea59da13d7339325865c609dc7b6cc881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ARCH=@ARCH@
SYSROOT=@SYSROOT@

CFLAGS +=-D_LINUX -fPIC
CXXFLAGS +=-D_LINUX -fPIC
ifeq ($(findstring osx,$(ARCH)), osx)
	CFLAGS +=-D__linux__
	CXXFLAGS +=-D__linux__
endif

OBJS=Depacker.o \
     digidrum.o \
     LZH/lzhxlib.o \
     XBMCYM.o \
     Ym2149Ex.o \
     Ymload.o \
     YmMusic.o \
     YmUserInterface.o \

SLIB=@abs_top_srcdir@/system/players/paplayer/stsoundlibrary-@ARCH@.so

$(SLIB): $(OBJS)
ifeq ($(findstring osx,$(ARCH)), osx)
	$(CXX) $(SYSROOT) -Wl,-alias_list,@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper_mach_alias \
	-bundle -undefined dynamic_lookup -read_only_relocs suppress -o $@ \
	@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o $(OBJS) $(BUNDLE1_O)
else
	$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ $(OBJS) `cat @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.def` @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o
endif

include @abs_top_srcdir@/Makefile.include