################################################################### # [LibSip - Signal Processing Library] # Copyright (C) 2002 - 2003 BOUILLET Olivier LEMAIRE Kévin ROUGET Paul # # 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. # # SPECIAL NOTE (the beerware clause): # This software is free software. However, it also falls under the beerware # special category. That is, if you find this software useful, or use it # every day, or want to grant us for our modest contribution to the # free software community, feel free to send us a beer from one of # your local brewery. Our preference goes to Belgium abbey beers and # irish stout (Guiness for strength!), but we like to try new stuffs. # # Authors: # # BOUILLET Olivier # Paper mail : # E-mail : # # LEMAIRE Kevin # Paper mail : 34 rue Général Lecler 94270 LE KREMLIN BICETRE, FRANCE # E-mail : hannibal@marvinproject.org # # ROUGET Paul # Paper mail : # E-mail : # ################################################################### #include common.Makefile # main target ############# NAME = libsip SUBDIRS = algo \ type # sources, directory by directory. # algo/ #subdirectory name ALGO_DIR = algo # name of the compiled bytecode .a lib (without path!) ALGO_A = lib$(ALGO_DIR).a # name of the compiled bytecode .a lib (with path!) ALGO_A_LIB = $(ALGO_DIR)/lib$(ALGO_DIR).a # .cc sources (without paths!) ALGO_CC = fft.cc\ mfcc.cc\ lpc.cc # compiled native code .o files (without path!) ALGO_O = $(TYPE_CC:.cc=.o) # compiled native code .o files (with path!) ALGO_O_LIB = $(ALGO_O: = $(ALGO_DIR)/) # type/ #subdirectory name TYPE_DIR = type # name of the compiled bytecode .a lib (without path!) TYPE_A = lib$(TYPE_DIR).a # name of the compiled bytecode .a lib (with path!) TYPE_A_LIB = $(TYPE_DIR)/lib$(TYPE_DIR).a # .cc sources (without paths!) TYPE_CC = contlogsignal.cpp\ contsignal.cpp\ disclogsignal.cpp\ discsignal.cpp # compiled native code .o files (without path!) TYPE_O = $(TYPE_CC:.cc=.o) # compiled native code .o files (with path!) TYPE_O_LIB = $(TYPE_O: = $(TYPE_DIR)/) # (* Libraries compilation *) # all .a files required for the libsip.a bytecode lib. ALL_A_LIB = $(ALGO_A_LIB) \ $(TYPE_A_LIB) # all .cmx files required for the libnn.cmxa native code lib. ALL_O_LIB = $(TYPE_O)\ $(ALGO_O) # (* /Sources *) # where to install the binaries prefix=/usr/local exec_prefix=${prefix} BINDIR=${exec_prefix}/bin # where to install the man page MANDIR=${prefix}/man # other variables set by ./configure GCC = gcc-3.2 Gpp = g++-3.2 EXE = BYTE = byte OPT = opt LATEX_HERE = latex DVIPDF_HERE = dvipdf DVIPS_HERE = dvips TEXI2HTML_HERE = texi2html INCLUDES = -I ../algo -I ../type # General compilation flags. ############################ # bytecode BFLAGS = -g $(INCLUDES) -w A # native code OFLAGS = $(INCLUDES) -w A -compact # Flags for linking. #################### # bytecode BLFLAGS = -a # native code OFLAGS = -lsip -L/usr/local/libsip RM = rm -f TMP = /tmp # generic rules ############### .SUFFIXES: .cc .o .a .tex .dvi .ps .html .cc.o: ${Gpp} -c $(OFLAGS) $< .tex.dvi: latex $< && latex $< .dvi.ps: dvips $< -o $@ .tex.html: hevea $<