# Generated automatically from Makefile.in by configure. and modified manually by Keishi Suenaga
# Makefile.in generated by automake 1.6.1 from Makefile.am.
# Generated automatically from Makefile.in by configure.

# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.



# TiMidity++ -- MIDI to WAVE converter and player
# Copyright (C) 1999,2000 Masanao Izumo <mo@goice.co.jp>
# Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# This Makefile is known to work with GNU make.

# TiMidity++ -- MIDI to WAVE converter and player
# Copyright (C) 1999-2001 Masanao Izumo <mo@goice.co.jp>
# Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# Define follows if you want to change.
# Note that the definition of beginning with just one `#' implies
# default value from configure.

srcdir = .
top_srcdir = ..
prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include
pkgincludedir = $(includedir)/TiMidity++
top_builddir = ..

ACLOCAL = /usr/local/src/UMP/TiMidity++-2.10.4/missing aclocal
AUTOCONF = autoconf
AUTOMAKE = /usr/local/src/UMP/TiMidity++-2.10.4/missing automake
AUTOHEADER = /usr/local/src/UMP/TiMidity++-2.10.4/missing autoheader

am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = /bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
INSTALL_HEADER = $(INSTALL_DATA)
transform = s,x,x,
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = i686-pc-mingw32
build_triplet = i686-pc-mingw32
host_alias = i686-pc-mingw32
host_triplet = i686-pc-mingw32
target_alias = i686-pc-mingw32
target_triplet = i686-pc-mingw32


SHELL = /bin/sh
pkgdatadir = $(datadir)/timidity

pkglibdir = $(libdir)/timidity
ALSA_CFLAGS = 
ALSA_LIBS = 
AS = as
CC = gcc
DLLTOOL =dlltool
ELFILES = 
EMACS = no
ESD_CFLAGS = 
ESD_CONFIG = 
ESD_LIBS = 
EXTRALIBS =  -lwinmm
GTK_CFLAGS = 
GTK_CONFIG = 
GTK_LIBS = 
INTERFACE_SRCS = 
LN_S = ln -s
NETSRCS = 
PACKAGE = TiMidity++
RANLIB = ranlib
SHCFLAGS =  -fPIC
DLLWRAP =dllwrap    -mno-cygwin -mwindows -L/usr/lib/mingw --dlltool-name=$(DLLTOOL) --as=$(AS) --driver-name=$(CC) --target=i386-mingw32
SYSEXTRAS =  w32_a.c
VERSION = 2.10.4
WISH = wish
X_CFLAGS = 
X_EXTRA_LIBS = 
X_LIBS = 
X_PRE_LIBS = 
dynamic_targets = 
lispdir = 
program_transform_name = s,x,x,
so = dll
tcltk_dep = 
timidity_LDFLAGS = 

# Where to install the patches, config files.
PKGDATADIR = $(pkgdatadir)

# Where to install the Tcl code and the bitmaps.
# It also contains bitmaps which are shared with XAW interface.
PKGLIBDIR = $(pkglibdir)

# Where to install the dynamic link interface.
SHLIB_DIR = $(pkglibdir)

# Where to install timidity.el
ELISP_DIR = $(pkgdatadir)

# If you want to change TCL_DIR, please do follows.
# * Add -DTKPROGPATH=\"$(TCL_DIR)/tkmidity.tcl\" to CPPFLAGS.
# * Make a symbolic link $(PKGLIBDIR)/bitmaps to $(TCL_DIR)/bitmaps
TCL_DIR = $(PKGLIBDIR)

# Define the timidity default file search path.
DEF_DEFAULT_PATH = -DDEFAULT_PATH=\"$(PKGDATADIR)\"

# You sould not change follows definitions. 
DEF_PKGDATADIR = -DPKGDATADIR=\"$(PKGDATADIR)\"
DEF_PKGLIBDIR = -DPKGLIBDIR=\"$(PKGLIBDIR)\"
DEF_SHLIB_DIR = -DSHLIB_DIR=\"$(SHLIB_DIR)\"
BITMAP_DIR = $(TCL_DIR)/bitmaps

INCLUDES = \
	-I$(top_srcdir) \
	-I$(top_srcdir)/libarc \
	-I$(top_srcdir)/interface \
	-I$(top_srcdir)/utils \
	-I$(top_srcdir)/timidity \
	-I$(top_srcdir)/libunimod \
	$(EXTRAINCS)


noinst_LIBRARIES = libump.a

libump_a_SOURCES = \
	npwin.cpp \
	WinUMP.c \
	WinUMP-rc.res \
	plugin_c.c 

EXTRA_DIST = \
	npunix.cpp \
	WinUMP.c \
	plugin_c.c \
	jri.h \
	jri_md.h \
	jritypes.h \
	npapi.h \
	npupp.h 


DEF_FILE= ./WinUMP.def

#########################################################################
# Netscape Plugin settings (ump.so - Unix Midi Plugin)

# linker for making shared library
UMP = NPWinUMP32.dll

UMPOBJS = \
	npwin.o \
	WinUMP.o \
	WinUMP-res.o \
	plugin_c.o \
	timiditymain.o

UMPLINKS = $(LIBS) 
subdir = ump
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h $(top_builddir)/interface.h
CONFIG_CLEAN_FILES =
LIBRARIES = $(noinst_LIBRARIES)

libump_a_AR = $(AR) cru
libump_a_LIBADD =
am_libump_a_OBJECTS = npwin.$(OBJEXT) UnixShell.$(OBJEXT) \
	plugin_c.$(OBJEXT)
libump_a_OBJECTS = $(am_libump_a_OBJECTS)

DEFS = -DHAVE_CONFIG_H -DINCLUDE_LIVE_CONNECT -DWIN32 -D_WINDOWS -D_USRDLL -D_WINDLL -D_MBCS
DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)
CPPFLAGS = -Wall  -Ic:/jdk1.2.2/include-old -Ic:/jdk1.2.2/include-old/win32 -Ic:/jdk1.2.2/include -Ic:/dk1.2.2/include/win32  -DAU_W32 $(DEF_PKGDATADIR) $(DEF_PKGLIBDIR) $(DEF_DEFAULT_PATH) -DTIMIDITY_OUTPUT_ID=\"d\"
LDFLAGS =   -L/usr/local/lib -L/usr/local/SDL-1.2.4/lib -L/usr/local/directx-devel/lib -L/usr/local/tml/lib -L/Mingw/lib -L/usr/local/lib
LIBS = -lm       -lwinmm
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
CFLAGS = -O2 -DWIN32 -D_WINDOWS
DIST_SOURCES = $(libump_a_SOURCES)
DIST_COMMON = Makefile.am Makefile.in
SOURCES = $(libump_a_SOURCES)

all: ump

.SUFFIXES:
.SUFFIXES: .def .rc .cpp .c .o


mostlyclean-compile:
	-rm -f *.$(OBJEXT) core *.core

distclean-compile:
	-rm -f *.tab.c

distclean-depend:
	-rm -rf ./$(DEPDIR)

.rc.o:
	windres $< -o $*.o
.c.o:
	$(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<

.cpp.o:
	$(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<


ump: $(UMP)

$(UMP):$(DEF_FILE) $(UMPOBJS)
	for f in libarc utils interface; do (cd $(top_builddir)/$$f; $(MAKE)); done
	cd $(top_builddir)/timidity; $(MAKE) objs
	$(DLLWRAP) -o $(UMP) $(LDFLAGS) --def $(DEF_FILE) $(UMPOBJS) \
	`echo $(top_builddir)/timidity/*.o | sed -e s@$(top_builddir)/timidity/timidity.o@@g` \
	$(top_builddir)/libarc/*.o \
	$(top_builddir)/utils/*.o \
	$(top_builddir)/interface/*.o \
	$(top_builddir)/libunimod/*.o \
	$(UMPLINKS)

clean:
	rm -f $(UMP)
	rm -f *.o

timiditymain.o: $(top_srcdir)/timidity/timidity.c
	$(COMPILE) -Dmain=timiditymain -o $@ -c $(top_srcdir)/timidity/timidity.c

