You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
3.4 KiB
Makefile
125 lines
3.4 KiB
Makefile
# ***************************************************** -*- Makefile -*-
|
|
#
|
|
# Copyright (C) 2004 Andreas Huggel <ahuggel@gmx.net>
|
|
#
|
|
# This Makefile is part of the Exiv2 distribution.
|
|
#
|
|
# 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.
|
|
#
|
|
# File: config.mk.in
|
|
# Version: $Rev$
|
|
# Author(s): Andreas Huggel (ahu) <ahuggel@gmx.net>
|
|
# History: 10-Dec-03, ahu: created
|
|
#
|
|
# Description:
|
|
# Exiv2 system configuration file.
|
|
#
|
|
|
|
# **********************************************************************
|
|
# Define which libraries (shared and/or static) to build
|
|
SHARED_LIBS = 1
|
|
STATIC_LIBS =
|
|
|
|
# **********************************************************************
|
|
# C++ Compiler and precompiler
|
|
CXX = @CXX@
|
|
|
|
# Common compiler flags (warnings, symbols [-ggdb], optimization [-O2], etc)
|
|
ifeq ($(findstring g++,$(CXX)),g++)
|
|
CXXFLAGS := -Wall -O2
|
|
else
|
|
CXXFLAGS := @CXXFLAGS@
|
|
endif
|
|
# Compiler flags to compile static objects
|
|
CXXFLAGS_STATIC := $(CXXFLAGS)
|
|
# Compiler flags for shared objects
|
|
CXXFLAGS_SHARED := $(CXXFLAGS) -fPIC
|
|
|
|
# Command to run only the preprocessor
|
|
CXXCPP = $(CXX) -E -dD
|
|
|
|
# Preprocessor flags
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
# Command to run the compiler or preprocessor to produce dependencies
|
|
CXXDEP = $(CXX) -MM
|
|
|
|
# Linker flags
|
|
LDFLAGS = @LDFLAGS@
|
|
# Linker flags to link applications
|
|
LDFLAGS_BIN = $(LDFLAGS)
|
|
# Linker flags used to link shared libraries
|
|
LDFLAGS_SHARED = $(LDFLAGS) -shared -fPIC
|
|
|
|
# Repository for object files of templates (e.g., Compaq Tru64 cxx)
|
|
CXX_REPOSITORY =
|
|
|
|
# Library filename suffixes
|
|
SHAREDLIB_SUFFIX = .so
|
|
ARCHIVE_SUFFIX = .a
|
|
|
|
# Suffix of executables
|
|
EXEEXT := @EXEEXT@
|
|
|
|
# **********************************************************************
|
|
# C Compiler
|
|
CC = @CC@
|
|
ifeq ($(CXX),g++)
|
|
CFLAGS := -Wall -O2
|
|
else
|
|
CFLAGS := @CFLAGS@
|
|
endif
|
|
|
|
# **********************************************************************
|
|
# Global includes, libraries and defines
|
|
INCS = -I. -I$(top_srcdir) -I$(incdir)
|
|
LIBS = -L. -L$(libdir) @LIBS@
|
|
DEFS = @DEFS@
|
|
|
|
# **********************************************************************
|
|
# Functions
|
|
HAVE_TIMEGM = @HAVE_TIMEGM@
|
|
|
|
# **********************************************************************
|
|
# Archive management
|
|
RANLIB = @RANLIB@
|
|
AR = ar
|
|
ARFLAGS = rcuv
|
|
|
|
# **********************************************************************
|
|
# Installation programs
|
|
INSTALL_EXE = @INSTALL@
|
|
INSTALL_PROGRAM = $(INSTALL_EXE)
|
|
INSTALL_DATA = $(INSTALL_EXE) -m 644
|
|
INSTALL_DIRS = $(top_srcdir)/mkinstalldirs
|
|
|
|
# **********************************************************************
|
|
# Other programs
|
|
RM = @rm -vf
|
|
|
|
# **********************************************************************
|
|
# Directories
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
|
|
# Source directory
|
|
srcdir = @srcdir@
|
|
|
|
# Installation directories
|
|
bindir = @bindir@
|
|
incdir = @includedir@/exiv2
|
|
libdir = @libdir@
|