Blame | Last modification | View Log | RSS feed
# Makefile template built by pmkscan (2008-05-17 20:40)
# @configure_input@
# build tools
CC= @CC@
CFLAGS= @CFLAGS@
CLDFLAGS= @CLDFLAGS@
CXX= @CXX@
CXXFLAGS= @CXXFLAGS@
CXXLDFLAGS= @CXXLDFLAGS@ @LIBS@
SLCXXFLAGS= @SLCXXFLAGS@
SLCXXLDFLAGS= @SLCXXLDFLAGS@
AR= @AR@
ARFLAGS= cru
RANLIB= @RANLIB@
INSTALL= @INSTALL@
RM= rm
RMFLAGS= -rf
# tool aliases
INSTALL_BIN= $(INSTALL) -m 755
INSTALL_SBIN= $(INSTALL) -m 755
INSTALL_STLIB= $(INSTALL) -m 644
INSTALL_SHLIB= $(INSTALL) -m 755
INSTALL_DATA= $(INSTALL) -D -m 644
INSTALL_DIR= $(INSTALL) -d -m 755
INSTALL_MAN= $(INSTALL) -m 644
# specific directories
PREFIX= @PREFIX@
BINDIR= @BINDIR@
SBINDIR= @SBINDIR@
DATADIR= @DATADIR@
LIBDIR= @LIBDIR@
INCDIR= @INCDIR@
SYSCONFDIR= @SYSCONFDIR@
# packaging
PACKAGE= @PACKAGE@
#
# list of generated files
#
GEN_FILES= Makefile config.h
#
# source dependency lists
#
DKIM_SRCS= dkim.cpp dkim.h dkimbase.h dkimsign.h dkimverify.h resource.h
DKIMBASE_SRCS= dkim.h dkimbase.cpp dkimbase.h
DKIMSIGN_SRCS= dkim.h dkimbase.h dkimsign.cpp dkimsign.h
DKIMVERIFY_SRCS= dkim.h dkimbase.h dkimverify.cpp dkimverify.h dns.h
DNS_SRCS= dkim.h dns.cpp dns.h dnsresolv.h
DNSRESOLV_SRCS= dnsresolv.cpp dnsresolv.h
LIBDKIMTEST_SRCS= dkim.h dns.h libdkimtest.cpp
#
# binary name macros
#
LIBDKIMTEST= libdkimtest
#
# library name macros
#
LIBDKIM= libdkim
LIBDKIM_STATIC= @LIBDKIM_STATIC@
LIBDKIM_SHARED= @LIBDKIM_SHARED@
LIBDKIM_HEADERS= dkim.h
#
# binary target dependency lists
#
LIBDKIMTEST_OBJS= dkim.o dkimbase.o dkimverify.o dkimsign.o dns.o dnsresolv.o libdkimtest.o
#
# library target dependency lists
#
LIBDKIM_OBJS= dkim.o dkimbase.o dkimsign.o dkimverify.o dns.o \
dnsresolv.o
#
# target lists
#
# building
BUILD_TARGETS= $(ALL_BIN_TARGETS) $(LIB_BUILD_TARGETS)
ALL_BIN_TARGETS= $(LIBDKIMTEST)
LIB_BUILD_TARGETS= static_libs $(SHARED_LIB_TARGETS)
STATIC_LIB_TARGETS= $(LIBDKIM_STATIC)
SHARED_LIB_TARGETS= @SHARED_LIB_TARGETS@
CXX_SHLIB_TARGETS= $(LIBDKIM_SHARED)
# cleaning
CLEAN_TARGETS= $(BIN_CLEAN_TARGETS) $(LIB_CLEAN_TARGETS)
BIN_CLEAN_TARGETS= $(LIBDKIMTEST)_clean
LIB_CLEAN_TARGETS= static_libs_clean $(SHLIB_CLEAN_TARGETS)
STLIB_CLEAN_TARGETS= $(LIBDKIM)_static_clean
SHLIB_CLEAN_TARGETS= @SHLIB_CLEAN_TARGETS@
CXX_SHLIB_CLEAN_TARGETS= $(LIBDKIM)_shared_clean
# installing
INSTALL_TARGETS= install_bin install_lib
BIN_INSTALL_TARGETS= $(LIBDKIMTEST)_install
LIB_INSTALL_TARGETS= lib_headers_install static_libs_install $(SHLIB_INST_TARGETS)
STLIB_INST_TARGETS= $(LIBDKIM)_static_install
SHLIB_INST_TARGETS= @SHLIB_INST_TARGETS@
CXX_SHLIB_INST_TARGETS= $(LIBDKIM)_shared_install
# deinstalling
DEINSTALL_TARGETS= $(BIN_DEINSTALL_TARGETS) $(LIB_DEINSTALL_TARGETS)
BIN_DEINSTALL_TARGETS= $(LIBDKIMTEST)_deinstall
LIB_DEINSTALL_TARGETS= lib_headers_deinstall static_libs_deinstall $(SHLIB_DEINST_TARGETS)
STLIB_DEINST_TARGETS= $(LIBDKIM)_static_deinstall
SHLIB_DEINST_TARGETS= @SHLIB_DEINST_TARGETS@
CXX_SHLIB_DEINST_TARGETS= $(LIBDKIM)_shared_deinstall
# by default we consider all binaries as non privileged
BIN_FILES= $(ALL_BIN_TARGETS)
# move privileged binaries here if needed
SBIN_FILES=
.SUFFIXES: .o .s .c .C .cc .cxx .cpp
# C suffixes
.c.o:
$(CC) $(CFLAGS) $(SLCFLAGS) -o $@ -c $<
.C.o:
$(CC) $(CFLAGS) $(SLCFLAGS) -o $@ -c $<
.cc.o:
$(CC) $(CFLAGS) $(SLCFLAGS) -o $@ -c $<
# C++ suffixes
.cxx.o:
$(CXX) $(CXXFLAGS) $(SLCXXFLAGS) -o $@ -c $<
.cpp.o:
$(CXX) $(CXXFLAGS) $(SLCXXFLAGS) -o $@ -c $<
#
# generic targets
#
all: $(BUILD_TARGETS)
clean: $(CLEAN_TARGETS)
install: $(INSTALL_TARGETS)
deinstall: $(DEINSTALL_TARGETS)
distclean: clean
$(RM) $(RMFLAGS) $(GEN_FILES)
#
# object rules
#
dkim.o: $(DKIM_SRCS)
dkimbase.o: $(DKIMBASE_SRCS)
dkimsign.o: $(DKIMSIGN_SRCS)
dkimverify.o: $(DKIMVERIFY_SRCS)
dns.o: $(DNS_SRCS)
dnsresolv.o: $(DNSRESOLV_SRCS)
libdkimtest.o: $(LIBDKIMTEST_SRCS)
#
# binary target rules
#
# main binary install target
install_bin: install_bindir $(BIN_INSTALL_TARGETS)
# install binary directory
install_bindir:
$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
# libdkimtest binary targets
$(LIBDKIMTEST): $(LIBDKIMTEST_OBJS)
$(CXX) $(CXXLDFLAGS) -o $@ $(LIBDKIMTEST_OBJS)
$(LIBDKIMTEST)_clean:
$(RM) $(RMFLAGS) $(LIBDKIMTEST_OBJS)
$(RM) $(RMFLAGS) $(LIBDKIMTEST)
$(LIBDKIMTEST)_install: $(LIBDKIMTEST)
$(INSTALL_BIN) $(LIBDKIMTEST) $(DESTDIR)$(BINDIR)/$(LIBDKIMTEST)
$(LIBDKIMTEST)_deinstall:
$(RM) $(RMFLAGS) $(DESTDIR)$(BINDIR)/$(LIBDKIMTEST)
#
# library target rules
#
# main library install target
install_lib: install_libdir $(LIB_INSTALL_TARGETS)
# install library directory
install_libdir:
$(INSTALL_DIR) $(DESTDIR)$(LIBDIR)
# library headers install target
lib_headers_install: $(LIBDKIM)_headers_install
# library headers deinstall target
lib_headers_deinstall: $(LIBDKIM)_headers_deinstall
# static library targets
static_libs: $(STATIC_LIB_TARGETS)
static_libs_clean: $(STLIB_CLEAN_TARGETS)
static_libs_install: $(STLIB_INST_TARGETS)
static_libs_deinstall: $(STLIB_DEINST_TARGETS)
# C++ language shared library targets
cxx_shared_libs: $(CXX_SHLIB_TARGETS)
cxx_shared_libs_clean: $(CXX_SHLIB_CLEAN_TARGETS)
cxx_shared_libs_install: $(CXX_SHLIB_INST_TARGETS)
cxx_shared_libs_deinstall: $(CXX_SHLIB_DEINST_TARGETS)
# libdkim library targets
$(LIBDKIM)_headers_install: $(LIBDKIM_HEADERS)
$(INSTALL_DATA) dkim.h $(DESTDIR)$(INCDIR)/dkim.h
$(LIBDKIM)_headers_deinstall:
$(RM) $(RMFLAGS) $(DESTDIR)$(INCDIR)/dkim.h
$(LIBDKIM)_clean:
$(RM) $(RMFLAGS) $(LIBDKIM_OBJS)
$(LIBDKIM_STATIC): $(LIBDKIM_OBJS)
$(AR) $(ARFLAGS) $@ $(LIBDKIM_OBJS)
$(RANLIB) $@
$(LIBDKIM)_static_clean: $(LIBDKIM)_clean
$(RM) $(RMFLAGS) $(LIBDKIM_STATIC)
$(LIBDKIM)_static_install: $(LIBDKIM_STATIC)
$(INSTALL_STLIB) $(LIBDKIM_STATIC) $(DESTDIR)$(LIBDIR)/$(LIBDKIM_STATIC)
$(LIBDKIM)_static_deinstall:
$(RM) $(RMFLAGS) $(DESTDIR)$(LIBDIR)/$(LIBDKIM_STATIC)
$(LIBDKIM_SHARED): $(LIBDKIM_OBJS)
$(CXX) $(CXXLDFLAGS) $(SLCXXLDFLAGS) -o $@ $(LIBDKIM_OBJS)
$(LIBDKIM)_shared_clean: $(LIBDKIM)_clean
$(RM) $(RMFLAGS) $(LIBDKIM_SHARED)
$(LIBDKIM)_shared_install: $(LIBDKIM_SHARED)
$(INSTALL_SHLIB) $(LIBDKIM_SHARED) $(DESTDIR)$(LIBDIR)/$(LIBDKIM_SHARED)
ln -sf $(DESTDIR)$(LIBDIR)/$(LIBDKIM_SHARED) $(DESTDIR)$(LIBDIR)/libdkim.so
$(LIBDKIM)_shared_deinstall:
$(RM) $(RMFLAGS) $(DESTDIR)$(LIBDIR)/$(LIBDKIM_SHARED)