annotate trunk/C++/Makefile @ 706:f8e90b5d85fd tip

Delete CARFAC code from this repository. It has been moved to https://github.com/google/carfac Please email me with your github username to get access. I've also created a new mailing list to discuss CARFAC development: https://groups.google.com/forum/#!forum/carfac-dev
author ronw@google.com
date Thu, 18 Jul 2013 20:56:51 +0000
parents 33c6f1921171
children
rev   line source
flatmax@597 1 # Author Matt Flax <flatmax\@>
flatmax@597 2 #
flatmax@597 3 # This C++ file is part of an implementation of Lyon's cochlear model:
flatmax@597 4 # "Cascade of Asymmetric Resonators with Fast-Acting Compression"
flatmax@597 5 # to supplement Lyon's upcoming book "Human and Machine Hearing"
flatmax@597 6 #
flatmax@597 7 # Licensed under the Apache License, Version 2.0 (the "License");
flatmax@597 8 # you may not use this file except in compliance with the License.
flatmax@597 9 # You may obtain a copy of the License at
flatmax@597 10 #
flatmax@597 11 # http://www.apache.org/licenses/LICENSE-2.0
flatmax@597 12 #
flatmax@597 13 # Unless required by applicable law or agreed to in writing, software
flatmax@597 14 # distributed under the License is distributed on an "AS IS" BASIS,
flatmax@597 15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
flatmax@597 16 # See the License for the specific language governing permissions and
flatmax@597 17 # limitations under the License.
flatmax@597 18
flatmax@597 19 # Author : Matt Flax <flatmax\@>
flatmax@597 20 # Date : 2012.02.08
flatmax@597 21
flatmax@598 22 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 23 OBJ= $(SRC:.C=.o)
flatmax@597 24
flatmax@598 25 CFLAGS = `pkg-config --cflags eigen3`
flatmax@597 26
flatmax@598 27 all: lib ex
flatmax@597 28
flatmax@597 29 VERMAJ=1
flatmax@597 30 VERMIN=0
flatmax@597 31 VER="\"${VERMAJ}.${VERMIN}\""
flatmax@597 32
flatmax@597 33 LIBNAMEBASE=libCARFAC.so
flatmax@597 34 LIBNAMEMAJ=${LIBNAMEBASE}.${VERMAJ}
flatmax@597 35 LIBNAME=${LIBNAMEBASE}.${VERMAJ}.${VERMIN}
flatmax@597 36
flatmax@597 37 lib: ${OBJ}
flatmax@597 38 ${CXX} -shared -Wl,-soname,${LIBNAMEMAJ} -o ${LIBNAME} ${OBJ}
flatmax@597 39 ln -sf ${LIBNAME} ${LIBNAMEMAJ}
flatmax@597 40 ln -sf ${LIBNAMEMAJ} ${LIBNAMEBASE}
flatmax@597 41
flatmax@598 42 ex:
flatmax@598 43 ${CXX} ${CFLAGS} -I`pwd` -o test/EarTest test/EarTest.C -L`pwd` -lCARFAC
flatmax@598 44
flatmax@597 45 doc:
flatmax@597 46 doxygen Doxyfile
flatmax@597 47
flatmax@597 48 clean:
flatmax@597 49 rm -f *.o lib* *~
flatmax@597 50
flatmax@597 51 .C.o:
flatmax@597 52 ${CXX} ${CFLAGS} -fPIC -c -o $@ $<