# Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2012 # # This file is part of roard a part of RoarAudio, # a cross-platform sound system for both, home and professional use. # See README for details. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 # as published by the Free Software Foundation. # # RoarAudio 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 software; see the file COPYING. If not, write to # the Free Software Foundation, 51 Franklin Street, Fifth Floor, # Boston, MA 02110-1301, USA. RABS_INSTALL_TARGETS += lib CFLAGS += $(fPIC) $(SHARED_CF) LDFLAGS += $(SHARED) ifneq ($(origin COMMON_V_MAJOR), undefined) COMMON_SOVERSION ?= $(COMMON_V_MAJOR) endif ifneq ($(origin COMMON_SOVERSION), undefined) SOVERSION ?= $(COMMON_SOVERSION) else SOVERSION ?= dummy endif ifneq ($(origin COMMON_VERSION), undefined) PC_VERSION ?= $(COMMON_VERSION) else PC_VERSION ?= so$(SOVERSION) endif PC_DESC ?= DUMMY PC_LIBS += libroar LIBNAME = lib$(BASENAME) SOLIBNAME = $(LIBNAME)$(SHARED_SUFFIX) SOVLIBNAME = $(SOLIBNAME).$(SOVERSION) ALIBNAME = $(LIBNAME).a PCLIBNAME = $(LIBNAME).pc CKPORTDB = $(LIBNAME).ckport TARGETS=$(SOLIBNAME) $(SOVLIBNAME) $(ALIBNAME) $(PCLIBNAME) include $(ROAR_BUILDSYSTEM_DIR)/Makefile.common include $(ROAR_BUILDSYSTEM_DIR)/Makefile.install $(SOLIBNAME): $(SOVLIBNAME) ln -fs $(SOVLIBNAME) $(SOLIBNAME) $(SOVLIBNAME): $(OBJS) $(CC) $(LDFLAGS) -Wl,-soname,$(SOVLIBNAME) -o $(SOVLIBNAME) $(OBJS) $(LIBS) $(ALIBNAME): $(OBJS) $(AR) cru $(ALIBNAME) $(OBJS) $(RANLIB) $(ALIBNAME) $(PCLIBNAME): echo 'prefix=$(PREFIX)' > $(PCLIBNAME) echo 'exec_prefix=$${prefix}' >> $(PCLIBNAME) echo 'libdir=$(PREFIX_LIB)' >> $(PCLIBNAME) echo 'includedir=$(PREFIX_INC)' >> $(PCLIBNAME) echo '' >> $(PCLIBNAME) echo 'Name: $(LIBNAME)' >> $(PCLIBNAME) echo 'Description: $(PC_DESC)' >> $(PCLIBNAME) echo 'Version: $(PC_VERSION)' >> $(PCLIBNAME) echo 'Conflicts:' >> $(PCLIBNAME) ifeq ($(LINK_DEPS),full) echo 'Requires: $(PC_LIBS)' >> $(PCLIBNAME) else echo 'Requires.private: $(PC_LIBS)' >> $(PCLIBNAME) endif echo 'Libs: -L$${libdir} -l$(BASENAME)' >> $(PCLIBNAME) echo 'Cflags: -I$${includedir}' >> $(PCLIBNAME)