ARCH=@ARCH@ CFLAGS +=-D_LINUX -fPIC -DNSF_PLAYER CXXFLAGS +=-D_LINUX -fPIC -DNSF_PLAYER ifeq ($(findstring osx,$(ARCH)), osx) CFLAGS +=-D__linux__ CXXFLAGS +=-D__linux__ endif ifeq ($(ARCH), powerpc-osx) BUNDLE1_O=-lbundle1.o -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/ -lgcc endif OBJS=NoseFartDLL.o \ src/log.o \ src/memguard.o \ src/cpu/nes6502/dis6502.o \ src/cpu/nes6502/nes6502.o \ src/machine/nsf.o \ src/sndhrdw/fds_snd.o \ src/sndhrdw/fmopl.o \ src/sndhrdw/mmc5_snd.o \ src/sndhrdw/nes_apu.o \ src/sndhrdw/vrc7_snd.o \ src/sndhrdw/vrcvisnd.o SLIB=@abs_top_srcdir@/system/players/paplayer/nosefart-@ARCH@.so $(SLIB): $(OBJS) ifeq ($(findstring osx,$(ARCH)), osx) $(CC) $(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 $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $(OBJS) -Wl,--unresolved-symbols=ignore-all -lm \ `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