Last? Externals to new make methods
[xbmc:paulepanters-xbmc.git] / XBMC / xbmc / visualizations / Goom / Makefile.in
1 ARCH=@ARCH@
2 INCLUDES=-I. -I.. -I../../linux -I../../ -I../../../guilib -I../../../visualisations -Igoom2k4-0/src
3 OBJS=Main.o
4 SLIB=../../../visualisations/Goom.vis
5 CXXFLAGS=-g -O3 -fPIC
6 DIRS=goom2k4-0
7
8 $(SLIB): $(OBJS) goom2k4-0/src/.libs/libgoom2.a
9 ifeq ($(findstring osx,$(ARCH)), osx)
10         $(CXX) -fPIC -bundle -shared -undefined suppress -flat_namespace \
11                 goom2k4-0/src/.libs/libgoom2.a $(CXXFLAGS) -o $(SLIB) $(OBJS) \
12                 ../../../tools/Mach5/wrapper.rb $@;mv output.so $@
13 else
14         $(CXX) -fPIC goom2k4-0/src/*.o -shared $(CXXFLAGS) -o $(SLIB) $(OBJS) \
15                 `cat ../../cores/DllLoader/exports/wrapper.def` \
16                 ../../cores/DllLoader/exports/wrapper.o
17 endif
18
19 goom2k4-0/src/.libs/libgoom2.a:
20         $(MAKE) -C goom2k4-0
21
22 include ../../../Makefile.include