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

« back to all changes in this revision

Viewing changes to TuxGuitar-winmm/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?=-mno-cygwin -I$(shell gcj -print-file-name=include/)
 
2
LDFLAGS?=-mno-cygwin -Wl,--kill-at
 
3
LDLIBS?=-lwinmm
 
4
LDPATH?=
 
5
LIBRARY_PREFIX?=
 
6
LIBRARY_NAME?=tuxguitar-winmm-jni
 
7
LIBRARY_EXTENSION?=.dll
 
8
 
 
9
LIBRARY=$(LIBRARY_PREFIX)$(LIBRARY_NAME)$(LIBRARY_EXTENSION)
 
10
OBJECTS=org_herac_tuxguitar_player_impl_midiport_winmm_MidiSystem.o
 
11
 
 
12
%.o: %.c
 
13
        $(CC) $(CFLAGS) -c -o $@ $<
 
14
 
 
15
all:    $(LIBRARY)
 
16
 
 
17
$(LIBRARY):     $(OBJECTS)
 
18
        $(CC) $(LDFLAGS) -shared -o $(LIBRARY) $(OBJECTS) $(LDPATH) $(LDLIBS)
 
19
 
 
20
clean: 
 
21
        rm -f $(OBJECTS) $(LIBRARY)