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.

116 lines
3.4 KiB
Makefile

22 years ago
# ***************************************************** -*- Makefile -*-
#
21 years ago
# Copyright (C) 2004 Andreas Huggel <ahuggel@gmx.net>
22 years ago
#
21 years ago
# This Makefile is part of the Exiv2 distribution.
22 years ago
#
21 years ago
# 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.
22 years ago
#
21 years ago
# 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
# Version: $Name: $ $Revision: 1.2 $
# Author(s): Andreas Huggel (ahu) <ahuggel@gmx.net>
# History: 10-Dec-03, ahu: created
#
# Description:
# System configuration file for GNU/Linux: gcc 3.x on Debian GNU/Linux
# running Linux kernel 2.2.x or higher
22 years ago
#
# **********************************************************************
# Define which libraries (shared and/or static) to build
21 years ago
SHARED_LIBS = 1
STATIC_LIBS =
22 years ago
# **********************************************************************
# C++ Compiler and precompiler
CXX = g++
21 years ago
# Common compiler flags (warnings, symbols [-ggdb], optimization [-O2], etc)
CXXFLAGS := -Wall -Woverloaded-virtual -Wsign-promo -O2
22 years ago
# 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 =
# Command to run the compiler or preprocessor to produce dependencies
CXXDEP = $(CXX) -MM
# Flag to $(CXXDEP) to treat all subsequent file names as C++ source
# files, regardless of their suffixes
CXXLANGCXX = -x c++
# Linker flags
LDFLAGS =
# Linker flags to link applications
21 years ago
LDFLAGS_BIN = $(LDFLAGS)
22 years ago
# 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
# **********************************************************************
# Global includes, libraries and defines
INCS = -I. -I$(incdir) -I/usr/local/include
LIBS = -L. -L$(libdir) -L/usr/local/lib
DEFS =
# **********************************************************************
# Archive management
RANLIB = ranlib
AR = ar
ARFLAGS = rcuv
# **********************************************************************
# Installation programs
INSTALL_EXE = /usr/bin/install
INSTALL_PROGRAM = $(INSTALL_EXE) -c -p
INSTALL_DATA = $(INSTALL_EXE) -c -m 644 -p
# **********************************************************************
# Other programs
RM = @rm -vf
# **********************************************************************
# Directories
prefix = ..
#exec_prefix = ${prefix}
exec_prefix = ~
# Source directory
srcdir = .
# Installation directories
bindir = ${exec_prefix}/bin
incdir = ${exec_prefix}/include
idldir = ${exec_prefix}/idl
libdir = ${exec_prefix}/lib
mandir = ${prefix}/man
man1dir = $(mandir)/man1
man1ext = 1
man3dir = $(mandir)/man3
man3ext = 3
datadir = ${prefix}/share