1# TiMidity++ -- MIDI to WAVE converter and player 2# Copyright (C) 1999-2002 Masanao Izumo <mo@goice.co.jp> 3# Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi> 4# 5# This program is free software; you can redistribute it and/or modify 6# it under the terms of the GNU General Public License as published by 7# the Free Software Foundation; either version 2 of the License, or 8# (at your option) any later version. 9# 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU General Public License for more details. 14# 15# You should have received a copy of the GNU General Public License 16# along with this program; if not, write to the Free Software 17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 19include $(top_srcdir)/common.makefile.in 20 21INCLUDES = \ 22 -I$(top_srcdir) \ 23 -I$(top_srcdir)/timidity \ 24 -I$(top_srcdir)/utils \ 25 -I$(top_srcdir)/libarc \ 26 $(EXTRAINCS) 27 28noinst_LIBRARIES = libunimod.a 29 30libunimod_a_SOURCES = \ 31 load_669.c \ 32 load_amf.c \ 33 load_dsm.c \ 34 load_far.c \ 35 load_gdm.c \ 36 load_imf.c \ 37 load_it.c \ 38 load_m15.c \ 39 load_med.c \ 40 load_mod.c \ 41 load_mtm.c \ 42 load_okt.c \ 43 load_s3m.c \ 44 load_stm.c \ 45 load_stx.c \ 46 load_ult.c \ 47 load_uni.c \ 48 load_xm.c \ 49 mloader.c \ 50 mlutil.c \ 51 mmsup.c \ 52 munitrk.c \ 53 unimod.h \ 54 unimod_priv.h 55 56libunimod.a: $(libunimod_a_OBJECTS) $(libunimod_a_DEPENDENCIES) 57if VCPP 58 rm -f libunimod.a 59 rm -f unimod.lib 60 link -lib $(libunimod_a_OBJECTS) -out:unimod.lib 61 if test -f unimod.lib ; then touch $@ ; fi 62else 63if BORLANDC 64 rm -f libunimod.a 65 rm -f unimod.lib 66 for foo in $(libunimod_a_OBJECTS);do \ 67 tlib unimod.lib +$$foo; \ 68 done 69 if test -f unimod.lib ; then touch $@ ; fi 70else 71if WATCOM_C 72 rm -f libunimod.a 73 rm -f unimod.lib 74 for foo in $(libunimod_a_OBJECTS);do \ 75 wlib -q unimod.lib +$$foo; \ 76 done 77 if test -f unimod.lib ; then touch $@ ; fi 78else 79if DMC 80 rm -f libunimod.a 81 rm -f unimod.lib 82 start lib -c unimod.lib $(libunimod_a_OBJECTS) 83 if test -f unimod.lib ; then touch $@ ; fi 84else 85if POCC 86 rm -f libunimod.a 87 rm -f unimod.lib 88 polib -OUT:unimod.lib $(libunimod_a_OBJECTS) 89 if test -f unimod.lib ; then touch $@ ; fi 90else 91 -rm -f libunimod.a 92 $(libunimod_a_AR) libunimod.a $(libunimod_a_OBJECTS) $(libunimod_a_LIBADD) 93 $(RANLIB) libunimod.a 94endif 95endif 96endif 97endif 98endif 99 100clean: 101 rm -f *.$(OBJEXT) 102 rm -f *.$(so) 103 rm -f *.a 104 rm -f *.lib 105