~ubuntu-branches/ubuntu/oneiric/tuxguitar/oneiric

« back to all changes in this revision

Viewing changes to TuxGuitar-CoreAudio/jni/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mto: (5.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20080619003030-h719szrhsngou7c6
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CXX = g++
 
2
 
 
3
SDK = /Developer/SDKs/MacOSX10.4u.sdk
 
4
JAVA_FRAMEWORK = $(SDK)/System/Library/Frameworks/JavaVM.framework
 
5
 
 
6
INCLUDES = -I $(JAVA_FRAMEWORK)/Headers/
 
7
 
 
8
LIBRARIES = -framework CoreAudio -framework JavaVM -framework AudioUnit -framework AudioToolbox -framework Carbon
 
9
 
 
10
LIBRARY = tuxguitar-coreaudio-jni.jnilib
 
11
 
 
12
FILENAME = org_herac_tuxguitar_player_impl_midiport_coreaudio_MidiReceiverJNI.cpp
 
13
 
 
14
all:    $(LIBRARY)
 
15
 
 
16
$(LIBRARY):     $(OBJECT)
 
17
        g++ $(INCLUDES) -isysroot $(SDK) -arch ppc $(LIBRARIES) -msse -dynamiclib -o ppc_$(LIBRARY) $(FILENAME)
 
18
        g++ $(INCLUDES) -isysroot $(SDK) -arch i386 $(LIBRARIES) -msse -dynamiclib -o intel_$(LIBRARY) $(FILENAME)
 
19
        lipo -create ppc_$(LIBRARY) intel_$(LIBRARY) -output $(LIBRARY)
 
20
        rm ppc_$(LIBRARY) intel_$(LIBRARY)
 
21
 
 
22
clean:
 
 
b'\\ No newline at end of file'