aboutsummaryrefslogtreecommitdiff
path: root/lib/stsound/StSoundLibrary/Makefile.in
blob: 595cf8711b370fe7aa2472d3834e8c5e1269d3da (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@

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) $(LDFLAGS) -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) -Wl,--unresolved-symbols=ignore-all \
		`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