flatmax@597: # Author Matt Flax flatmax@597: # flatmax@597: # This C++ file is part of an implementation of Lyon's cochlear model: flatmax@597: # "Cascade of Asymmetric Resonators with Fast-Acting Compression" flatmax@597: # to supplement Lyon's upcoming book "Human and Machine Hearing" flatmax@597: # flatmax@597: # Licensed under the Apache License, Version 2.0 (the "License"); flatmax@597: # you may not use this file except in compliance with the License. flatmax@597: # You may obtain a copy of the License at flatmax@597: # flatmax@597: # http://www.apache.org/licenses/LICENSE-2.0 flatmax@597: # flatmax@597: # Unless required by applicable law or agreed to in writing, software flatmax@597: # distributed under the License is distributed on an "AS IS" BASIS, flatmax@597: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. flatmax@597: # See the License for the specific language governing permissions and flatmax@597: # limitations under the License. flatmax@597: flatmax@597: # Author : Matt Flax flatmax@597: # Date : 2012.02.08 flatmax@597: flatmax@598: SRC= AGC.C AGCCoeff.C AGCParam.C AGCState.C CAR.C CARCoeff.C CARParam.C CARState.C Coefficients.C Ear.C EarComponent.C Ears.C IHC.C IHCCoeff.C IHCParam.C IHCState.C Parameters.C State.C PsychoAcoustics.C flatmax@597: OBJ= $(SRC:.C=.o) flatmax@597: flatmax@598: CFLAGS = `pkg-config --cflags eigen3` flatmax@597: flatmax@598: all: lib ex flatmax@597: flatmax@597: VERMAJ=1 flatmax@597: VERMIN=0 flatmax@597: VER="\"${VERMAJ}.${VERMIN}\"" flatmax@597: flatmax@597: LIBNAMEBASE=libCARFAC.so flatmax@597: LIBNAMEMAJ=${LIBNAMEBASE}.${VERMAJ} flatmax@597: LIBNAME=${LIBNAMEBASE}.${VERMAJ}.${VERMIN} flatmax@597: flatmax@597: lib: ${OBJ} flatmax@597: ${CXX} -shared -Wl,-soname,${LIBNAMEMAJ} -o ${LIBNAME} ${OBJ} flatmax@597: ln -sf ${LIBNAME} ${LIBNAMEMAJ} flatmax@597: ln -sf ${LIBNAMEMAJ} ${LIBNAMEBASE} flatmax@597: flatmax@598: ex: flatmax@598: ${CXX} ${CFLAGS} -I`pwd` -o test/EarTest test/EarTest.C -L`pwd` -lCARFAC flatmax@598: flatmax@597: doc: flatmax@597: doxygen Doxyfile flatmax@597: flatmax@597: clean: flatmax@597: rm -f *.o lib* *~ flatmax@597: flatmax@597: .C.o: flatmax@597: ${CXX} ${CFLAGS} -fPIC -c -o $@ $<