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

« back to all changes in this revision

Viewing changes to TuxGuitar-alsa/jni/GNUmakefile

  • 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
CFLAGS?=-I$(shell gcj -print-file-name=include/)
 
2
CFLAGS+=-fPIC
 
3
LDFLAGS?=
 
4
LDLIBS?=-lasound
 
5
LDPATH?=-L/usr/lib
 
6
LIBRARY_PREFIX?=lib
 
7
LIBRARY_NAME?=tuxguitar-alsa-jni
 
8
LIBRARY_EXTENSION?=.so
 
9
 
 
10
LIBRARY=$(LIBRARY_PREFIX)$(LIBRARY_NAME)$(LIBRARY_EXTENSION)
 
11
OBJECTS=org_herac_tuxguitar_player_impl_midiport_alsa_MidiSystem.o
 
12
 
 
13
%.o: %.c
 
14
        $(CC) $(CFLAGS) -c -o $@ $<
 
15
 
 
16
all:    $(LIBRARY)
 
17
 
 
18
$(LIBRARY):     $(OBJECTS)
 
19
        $(CC) $(LDFLAGS) -shared -o $(LIBRARY) $(OBJECTS) $(LDPATH) $(LDLIBS)
 
20
 
 
21
clean: 
 
22
        rm -f $(OBJECTS) $(LIBRARY)
 
23
 
 
24
#eof "$Id: GNUmakefile,v 1.10 2008/04/17 20:06:34 rzr Exp $"