aboutsummaryrefslogtreecommitdiff
path: root/lib/timidity/Makefile.in
blob: fef6e28fce1030cd9f8d6e4778d7d0303467b447 (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
ARCH=@ARCH@

CFLAGS+=-D_LINUX -fPIC -DHAVE_GETTIMEOFDAY -I. -Itimidity -Ilibarc -Iutils
ifeq ($(ARCH), powerpc-osx)
	BUNDLE1_O=-lbundle1.o -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/ -lgcc
endif

OBJS= \
	timidity/aq.o \
	timidity/audio_cnv.o \
	timidity/buffer_a.o \
	timidity/common.o \
	timidity/controls.o \
	timidity/sdl_c.o \
	timidity/effect.o \
	timidity/filter.o \
	timidity/freq.o \
	timidity/instrum.o \
	timidity/miditrace.o \
	timidity/mix.o \
	timidity/modmid_a.o \
	timidity/mt19937ar.o \
	timidity/optcode.o \
	timidity/output.o \
	timidity/playmidi.o \
	timidity/quantity.o \
	timidity/readmidi.o \
	timidity/recache.o \
	timidity/resample.o \
	timidity/reverb.o \
	timidity/sbkconv.o \
	timidity/sffile.o \
	timidity/sfitem.o \
	timidity/smfconv.o \
	timidity/smplfile.o \
	timidity/sndfont.o \
	timidity/tables.o \
	timidity/timidity.o \
	timidity/version.o \
	timidity/wave_a.o \
	timidity/wrdt.o \
	libarc/url.o \
	libarc/url_mem.o \
	libarc/url_file.o \
	utils/mblock.o \
	utils/strtab.o \
	utils/fft4g.o \
	utils/timer.o \
	utils/getopt.o \
	timidity_codec.o

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

$(SLIB): $(OBJS) exports.def
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) `cat @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.def` @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o -Wl,--version-script=exports.def
endif
 
include @abs_top_srcdir@/Makefile.include