blob: b4cb698203612ca491129dc922ea436656980894 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
ARCH=@ARCH@
CFLAGS +=-D_LINUX -DHAVE_UNIX -DHAVE_STRCASECMP -DHAVE_STRNCASECMP \
-DHAVE_IOS_OPENMODE -fPIC -Ilibsidplay/win/VC \
-Ibuilders/resid-builder/include/sidplay/builders \
-Ilibsidplay/include/sidplay -Iresid -Ilibsidplay/include -fPIC
CXXFLAGS += $(CFLAGS)
ifeq ($(ARCH), powerpc-osx)
BUNDLE1_O=-lbundle1.o -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/ -lgcc
endif
OBJS=builders/resid-builder/src/resid-builder.o \
builders/resid-builder/src/resid.o resid/sid.o \
libsidplay/src/config.o \
libsidplay/src/event.o \
libsidplay/src/mixer.o \
libsidplay/src/player.o \
libsidplay/src/psiddrv.o \
libsidplay/src/reloc65.o \
libsidplay/src/sidplay2.o \
libsidplay/src/mos6510/mos6510.o \
libsidplay/src/mos6526/mos6526.o \
libsidplay/src/sid6526/sid6526.o \
libsidplay/src/mos656x/mos656x.o \
libsidplay/src/sidtune/IconInfo.o \
libsidplay/src/sidtune/InfoFile.o \
libsidplay/src/sidtune/MUS.o \
libsidplay/src/sidtune/p00.o \
libsidplay/src/sidtune/PP20.o \
libsidplay/src/sidtune/prg.o \
libsidplay/src/sidtune/PSID.o \
libsidplay/src/sidtune/SidTune.o \
libsidplay/src/sidtune/SidTuneTools.o \
libsidplay/src/xsid/xsid.o \
libsidplay/win/VC/XBMCSID.o \
resid/envelope.o \
resid/extfilt.o \
resid/filter.o \
resid/pot.o \
resid/version.o \
resid/voice.o \
resid/wave.o \
resid/wave6581__ST.o \
resid/wave6581_P_T.o \
resid/wave6581_PS_.o \
resid/wave6581_PST.o \
resid/wave8580__ST.o \
resid/wave8580_P_T.o \
resid/wave8580_PS_.o \
resid/wave8580_PST.o \
SLIB=@abs_top_srcdir@/system/players/paplayer/libsidplay2-@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
|