1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407
|
# TiMidity++ -- MIDI to WAVE converter and player
# Copyright (C) 1999-2004 Masanao Izumo <iz@onicos.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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
include $(top_srcdir)/common.makefile.in
SUFFIXES = .ptcl .tcl .@so@
SUBDIRS = motif_bitmaps bitmaps pixmaps
INCLUDES = \
-I$(top_srcdir)/timidity \
-I$(top_srcdir)/libarc \
-I$(top_srcdir)/utils
noinst_LIBRARIES = libinterface.a
libinterface_a_SOURCES = \
dumb_c.c \
wrdt_dumb.c \
wrdt_tty.c
EXTRA_libinterface_a_SOURCES = \
ncurs_c.c \
slang_c.c \
motif.h \
motif_c.c \
motif_i.c \
motif_p.c \
tk_c.c \
emacs_c.c \
vt100.h \
vt100.c \
vt100_c.c \
xaw.h \
xaw_c.c \
xaw_i.c \
xaw_redef.c \
xskin.h \
xskin_c.c \
xskin_i.c \
xskin_loadBMP.c \
xskin_spectrum.c \
wrdt_x.c \
x_sherry.c \
x_sherry.h \
x_wrdwindow.c \
x_wrdwindow.h \
VTPrsTbl.c \
VTparse.h \
x_mag.c \
x_mag.h \
dynamic_c.c \
mac_c.c \
mac_c.h \
mac_mag.c \
mac_mag.h \
mac_trace.c \
mac_wrdwindow.c \
mac_wrdwindow.h \
wrdt_mac.c \
wrdt_wcon.c \
gtk_c.c \
gtk_h.h \
gtk_i.c \
gtk_p.c \
soundspec.c \
soundspec.h \
x_sherry.c \
x_sherry.h \
check.xbm \
arrow.xbm \
on.xbm \
off.xbm \
server_c.c \
server_defs.h \
alsaseq_c.c \
w32g.h \
w32g_c.c \
w32g_ini.c \
w32g_rec.h \
w32g_res.h \
w32g_res.rc \
w32g_utl.c \
w32g_utl.h \
w32g_ut2.c \
w32g_ut2.h \
w32g_i.c \
w32g_playlist.c \
w32g_pref.c \
w32g_pref.h \
w32g_subwin.c \
w32g_subwin.h \
w32g_syn.c \
w32g_btn.bmp \
w32g_icon.ico \
w32g_sleep.bmp \
w32g_subbtn.bmp \
w32g_subwin2.c \
w32g_wrd.h \
wrdt_w32g.c \
w32g_subwin3.c \
w32g_tracer.h \
w32g_tracer.bmp \
w32g_mag.c \
w32g_mag.h \
w32g_dib.c \
w32g_dib.h \
winsyn_c.c \
rtsyn.h \
rtsyn_common.c \
rtsyn_winmm.c \
rtsyn_portmidi.c \
portmidisyn_c.c
if ENABLE_WRD
WRD_OBJS = \
wrdt_x.$(OBJEXT) \
x_wrdwindow.$(OBJEXT) \
VTPrsTbl.$(OBJEXT) \
x_mag.$(OBJEXT) \
x_sherry.$(OBJEXT)
endif
if CYGNUS
WRD_WINCON_OBJS = wrdt_wcon.$(OBJEXT)
endif
if MSYS
WRD_WINCON_OBJS2 = wrdt_wcon.$(OBJEXT)
endif
if NEEDDLOPEN
DYNAMIC_OBJS = dynamic_c.$(OBJEXT)
endif
if ENABLE_SOUND_SPEC
SOUND_SPEC_OBJS = \
soundspec.$(OBJEXT)
endif
if ENABLE_W32GUI
W32GUI_DEPS = w32g_res.res
endif
if ENABLE_W32G_SYN
W32GUI_DEPS = w32g_res.res
endif
INTERFACE_OBJS = $(INTERFACE_SRCS:.c=.$(OBJEXT))
libinterface_LIBADD = \
$(INTERFACE_OBJS) \
$(WRD_OBJS) \
$(WRD_WINCON_OBJS) \
$(WRD_WINCON_OBJS2) \
$(DYNAMIC_OBJS) \
$(SOUND_SPEC_OBJS)
libinterface_a_LIBADD=$(libinterface_LIBADD)
libinterface_dep = \
$(top_builddir)/interface.h \
$(libinterface_a_LIBADD) \
$(tcltk_dep) \
$(W32GUI_DEPS)
libinterface.a: $(libinterface_a_OBJECTS) $(libinterface_a_DEPENDENCIES) $(libinterface_dep)
if VCPP
rm -f libinterface.a
rm -f interface.lib
link -lib $(libinterface_a_OBJECTS) $(libinterface_LIBADD) -out:interface.lib
if test -f interface.lib ; then touch $@ ; fi
else
if BORLANDC
rm -f libinterface.a
rm -f interface.lib
for foo in $(libinterface_a_OBJECTS) $(libinterface_LIBADD) ;do \
tlib interface.lib +$$foo; \
done
if test -f interface.lib ; then touch $@ ; fi
else
if WATCOM_C
rm -f libinterface.a
rm -f interface.lib
for foo in $(libinterface_a_OBJECTS) $(libinterface_LIBADD) ;do \
wlib -q interface.lib +$$foo; \
done
if test -f interface.lib ; then touch $@ ; fi
else
rm -f libinterface.a
$(AR) cru libinterface.a $(libinterface_a_OBJECTS) $(libinterface_a_LIBADD)
$(RANLIB) libinterface.a
endif
endif
endif
# Tcl interface sources
TCLSRCS = tkmidity.ptcl tkpanel.tcl browser.tcl misc.tcl
# Tcl/Tk sources
TCLF = tkmidity.tcl tkpanel.tcl browser.tcl misc.tcl
ALLTCLF = $(TCLF) tclIndex
EXTRA_DIST = \
escape_sjis.pl \
tkmidity.ptcl \
tkpanel.tcl \
browser.tcl \
misc.tcl \
timidity.el \
tclIndex \
interface_A.txt \
interface_T.txt \
interface_a.txt \
interface_e.txt \
interface_g.txt \
interface_i.txt \
interface_k.txt \
interface_m.txt \
interface_n.txt \
interface_s.txt
.ptcl.tcl:
sed -e 's@%TCL_DIR%@$(TCL_DIR)@g' $< > $@
clean:
rm -f tkmidity.tcl
rm -f *.$(OBJEXT)
rm -f *.$(so)
rm -f *.res
rm -f *.RES
rm -f *escaped.c
rm -f *.a
rm -f *.lib
tclIndex: $(TCLSRCS)
rm -f tclIndex
echo "auto_mkindex . *.tcl" | tclsh
if ENABLE_TCLTK
install_tk = install.tk
endif
if ENABLE_DYNAMIC_TCLTK
install_tk = install.tk
endif
if ENABLE_XAW
install_xaw = install.xaw
endif
if ENABLE_DYNAMIC_XAW
install_xaw = install.xaw
endif
install.tk: $(ALLTCLF) install.bitmaps
test -d $(DESTDIR)$(TCL_DIR) || mkdir -p $(DESTDIR)$(TCL_DIR)
for f in $(ALLTCLF) ''; do case ".$$f" in .);; *) $(INSTALL_DATA) $$f $(DESTDIR)$(TCL_DIR);; esac; done
install.xaw: install.bitmaps
install.bitmaps:
cd bitmaps; $(MAKE) install.bitmaps
if ENABLE_EMACS
# ELFILES = @ELFILES@ # autoconf already define this
install_el = install.el
endif
install.el: $(ELFILES)
test -d $(DESTDIR)$(ELISP_DIR) || mkdir -p $(DESTDIR)$(ELISP_DIR)
for f in $(ELFILES) ''; do case ".$$f" in .);; *) $(INSTALL_DATA) $$f $(DESTDIR)$(ELISP_DIR);; esac; done
if VCPP
w32g_res.res: w32g_res.h w32g_rec.h w32g_res.rc \
w32g_btn.bmp w32g_icon.ico w32g_sleep.bmp w32g_subbtn.bmp
rc w32g_res.rc
else
if WATCOM_C
w32g_res.res: w32g_res.h w32g_rec.h w32g_res.rc \
w32g_btn.bmp w32g_icon.ico w32g_sleep.bmp w32g_subbtn.bmp
rc w32g_res.rc
else
if BORLANDC
w32g_res.res: w32g_res.h w32g_rec.h w32g_res.rc \
w32g_btn.bmp w32g_icon.ico w32g_sleep.bmp w32g_subbtn.bmp
perl -pe 's/(^FONT.*".*").*$$/$$1/' w32g_res.rc >w32g_res_bc.rc
brcc32 -ic:/borland/bcc55/include w32g_res_bc.rc
mv w32g_res_bc.RES w32g_res.res
rm w32g_res_bc.rc
else
w32g_syn_escaped.c:w32g_syn.c escape_sjis.pl
escape_sjis.pl < w32g_syn.c > w32g_syn_escaped.c
w32g_subwin_escaped.c:w32g_subwin.c escape_sjis.pl
escape_sjis.pl < w32g_subwin.c > w32g_subwin_escaped.c
w32g_res.res: w32g_res.h w32g_rec.h w32g_res.rc \
w32g_btn.bmp w32g_icon.ico w32g_sleep.bmp w32g_subbtn.bmp \
escape_sjis.pl
escape_sjis.pl <w32g_res.rc >w32g_res_escaped.rc
windres -o $@ -O coff w32g_res.rc 2>&1|grep escape - >/dev/null && \
windres -o $@ -O coff w32g_res_escaped.rc || echo
rm w32g_res_escaped.rc
endif
endif
endif
## This is another way to build japanese resource for mingw.
#BRCC32 = c:/borland/bcc55/bin/brcc32.exe
#BRCC32_FLAGS = -ic:/borland/bcc55/include
#w32g_res.res: w32g_res.h w32g_rec.h w32g_res.rc \
# w32g_btn.bmp w32g_icon.ico w32g_sleep.bmp w32g_subbtn.bmp
# perl -pe 's/(^FONT.*".*").*$$/$$1/' w32g_res.rc >w32g_res_bc.rc
# $(BRCC32) $(BRCC32_FLAGS) w32g_res_bc.rc
# windres -o tmp.res -O coff w32g_res_bc.RES
# mv tmp.res w32g_res.res
# rm w32g_res_bc.RES
if NEEDDLOPEN
# dynamic_targets = @dynamic_targets@ # autoconf already define this
install_dynamics = install.dynamics
#n_so_libs = @n_so_libs@
#s_so_libs = @s_so_libs@
#m_so_libs = @m_so_libs@
#k_so_libs = @k_so_libs@
#e_so_libs = @e_so_libs@
#T_so_libs = @T_so_libs@
#a_so_libs = @a_so_libs@
#i_so_libs = @i_so_libs@
#g_so_libs = @g_so_libs@
all-am: $(dynamic_targets)
install.dynamics: $(dynamic_targets)
test -d $(DESTDIR)$(SHLIB_DIR) || mkdir -p $(DESTDIR)$(SHLIB_DIR)
for f in $(dynamic_targets) ''; do case ".$$f" in .);; *) $(INSTALL_PROGRAM) $$f $(DESTDIR)$(SHLIB_DIR) ; $(INSTALL_DATA) $${f%%$(so)}txt $(DESTDIR)$(SHLIB_DIR);; esac; done
.c.$(so):
$(COMPILE) $(SHCFLAGS) -c $< -o $@
bitset.$(so): $(top_srcdir)/utils/bitset.c
$(COMPILE) $(SHCFLAGS) -o $@ -c $<
timer.$(so): $(top_srcdir)/utils/timer.c
$(COMPILE) $(SHCFLAGS) -o $@ -c $<
url_buff.$(so): $(top_srcdir)/libarc/url_buff.c
$(COMPILE) $(SHCFLAGS) -o $@ -c $<
support.$(so): $(top_srcdir)/utils/support.c
$(COMPILE) $(SHCFLAGS) -o $@ -c $<
interface_n.$(so): ncurs_c.$(so) support.$(so) bitset.$(so) timer.$(so)
$(SHLD) -o $@ ncurs_c.$(so) support.$(so) bitset.$(so) timer.$(so) $(n_so_libs)
interface_s.$(so): slang_c.$(so) support.$(so) timer.$(so)
$(SHLD) -o $@ slang_c.$(so) support.$(so) timer.$(so) $(s_so_libs)
interface_m.$(so): motif_c.$(so) support.$(so) motif_i.$(so) motif_p.$(so)
$(SHLD) -o $@ motif_c.$(so) support.$(so) motif_i.$(so) motif_p.$(so) $(m_so_libs)
interface_k.$(so): tk_c.$(so) support.$(so)
$(SHLD) -o $@ tk_c.$(so) support.$(so) $(k_so_libs)
interface_e.$(so): emacs_c.$(so) support.$(so)
$(SHLD) -o $@ emacs_c.$(so) support.$(so) $(e_so_libs)
interface_T.$(so): vt100_c.$(so) support.$(so) vt100.$(so) bitset.$(so) timer.$(so)
$(SHLD) -o $@ vt100_c.$(so) support.$(so) vt100.$(so) bitset.$(so) timer.$(so) $(T_so_libs)
interface_a.$(so): xaw_c.$(so) support.$(so) xaw_i.$(so) timer.$(so)
$(SHLD) -o $@ xaw_c.$(so) support.$(so) xaw_i.$(so) timer.$(so) $(a_so_libs)
interface_i.$(so): xskin_c.$(so) support.$(so) xskin_i.$(so) xskin_loadBMP.$(so) xskin_spectrum.$(so) url_buff.$(so)
$(SHLD) -o $@ xskin_c.$(so) support.$(so) xskin_i.$(so) xskin_loadBMP.$(so) xskin_spectrum.$(so) url_buff.$(so) $(i_so_libs)
interface_g.$(so): gtk_c.$(so) support.$(so) gtk_i.$(so) gtk_p.$(so)
$(SHLD) -o $@ gtk_c.$(so) support.$(so) gtk_i.$(so) gtk_p.$(so) $(g_so_libs)
interface_r.$(so): server_c.$(so) support.$(so)
$(SHLD) -o $@ server_c.$(so) support.$(so)
interface_A.$(so): alsaseq_c.$(so) support.$(so)
$(SHLD) -o $@ alsaseq_c.$(so) support.$(so)
endif
clean-compile:
-rm -f *.$(so)
-rm -f *.res
-rm -f *.RES
install-exec-local: $(install_tk) $(install_xaw) $(install_el) $(install_dynamics)
########## End of Makefile
|