1################################################################################ 2## qDecoder - http://www.qdecoder.org 3## 4## Copyright (c) 2000-2012 Seungyoung Kim. 5## All rights reserved. 6## 7## Redistribution and use in source and binary forms, with or without 8## modification, are permitted provided that the following conditions are met: 9## 10## 1. Redistributions of source code must retain the above copyright notice, 11## this list of conditions and the following disclaimer. 12## 2. Redistributions in binary form must reproduce the above copyright notice, 13## this list of conditions and the following disclaimer in the documentation 14## and/or other materials provided with the distribution. 15## 16## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17## AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19## ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 20## LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26## POSSIBILITY OF SUCH DAMAGE. 27################################################################################ 28## $Id: Makefile.in 648 2012-07-16 21:24:40Z seungyoung.kim $ 29################################################################################ 30 31prefix = @prefix@ 32exec_prefix = @exec_prefix@ 33 34## Name 35PRGNAME = qdecoder 36 37## pkgconfig filename 38PKGCONFIGNAME = qdecoder.pc 39 40## Static Library Name 41LIBNAME = lib${PRGNAME}.a 42 43## Shared Library Name 44SLIBVERSION = 12 45SLIBNAME = lib${PRGNAME}.so 46SLIBREALNAME = ${SLIBNAME}.${SLIBVERSION} 47 48## System library directory 49LIBDIR = @libdir@ 50HEADERDIR = @includedir@ 51PKGCONFIGDIR = $(PREFIX)/libdata/pkgconfig 52 53## Which compiler & options for release 54CC = @CC@ 55CFLAGS = @CFLAGS@ 56CPPFLAGS = @CPPFLAGS@ 57 58## Utilities 59AR = @AR@ 60ARFLAGS = -rc 61CHMOD = @CHMOD@ 62INSTALL = @INSTALL@ 63INSTALL_DATA = @INSTALL_DATA@ 64LN_S = @LN_S@ 65RANLIB = @RANLIB@ 66RM = @RM@ 67MKDIR = @MKDIR@ 68RMDIR = @RMDIR@ 69 70## Objects List 71OBJ = qcgireq.o \ 72 qcgires.o \ 73 qcgisess.o \ 74 qentry.o \ 75 internal.o 76 77## Make Library 78all: qdecoder 79 80qdecoder: ${OBJ} 81 ${AR} ${ARFLAGS} ${LIBNAME} ${OBJ} 82 ${RANLIB} ${LIBNAME} 83 ${CC} -shared -Wl,-soname,${SLIBREALNAME} -o ${SLIBREALNAME} ${OBJ} 84 ${LN_S} -f ${SLIBREALNAME} ${SLIBNAME} 85 86install: all 87 ${MKDIR} -p ${DESTDIR}${HEADERDIR} 88 ${MKDIR} -p ${DESTDIR}${LIBDIR} 89 ${MKDIR} -p ${DESTDIR}${PKGCONFIGDIR} 90 ${INSTALL_DATA} qdecoder.h ${DESTDIR}${HEADERDIR}/qdecoder.h 91 ${INSTALL_DATA} ${LIBNAME} ${DESTDIR}${LIBDIR}/${LIBNAME} 92 ${INSTALL_DATA} ${SLIBREALNAME} ${DESTDIR}${LIBDIR}/${SLIBREALNAME} 93 ${INSTALL_DATA} ${PKGCONFIGNAME} ${DESTDIR}${PKGCONFIGDIR}/${PKGCONFIGNAME} 94 ( cd ${DESTDIR}${LIBDIR}; ${LN_S} -f ${SLIBREALNAME} ${SLIBNAME} ) 95 96deinstall: uninstall 97uninstall: 98 ${RM} -f ${HEADERDIR}/qdecoder.h 99 ${RM} -f ${LIBDIR}/${LIBNAME} 100 ${RM} -f ${LIBDIR}/${SLIBREALNAME} 101 ${RM} -f ${LIBDIR}/${SLIBNAME} 102 ${RM} -f ${PKGCONFIGDIR}/${PKGCONFIGNAME} 103 ${RMDIR} -p --ignore-fail-on-non-empty ${HEADERDIR} 104 ${RMDIR} -p --ignore-fail-on-non-empty ${PKGCONFIGDIR} 105 ${RMDIR} -p --ignore-fail-on-non-empty ${LIBDIR} 106 107doc: 108 doxygen doxygen.conf 109 110cleandoc: 111 ${RM} -rf ../doc/html 112 113clean: 114 ${RM} -f ${OBJ} ${LIBNAME} ${SLIBREALNAME} ${SLIBNAME} 115 116## Compile 117.c.o: 118 ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $< 119