Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

298 lines (223 sloc) 7.108 kb
# @configure_input@
SHELL = /bin/sh
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
arch= @build_cpu@
CC = @CC@
CXX=@CXX@
LD=@CXX@
RANLIB=@RANLIB@
CPPFLAGS = @CPPFLAGS@
CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@
OFLAGS=@OFLAGS@
LDFLAGS = @LDFLAGS@
LOADLIBES = @LIBS@
INSTALL = @INSTALL@
AR=ar
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = .
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
VERSION = @VERSION@
DEBUGEXTRA=-D_GLIBCXX_DEBUG -DCVD_IMAGE_DEBUG
SUBDIRS =
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
DIST_COMMON = README ChangeLog Makefile.am \
Makefile.in aclocal.m4 configure configure.ac install-sh missing \
mkinstalldirs
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
################################################################################
#
# CVD objects
#
CVD_OBJS= cvd_src/cvd_timer.o \
cvd_src/diskbuffer2.o \
cvd_src/deinterlacebuffer.o \
cvd_src/exceptions.o \
cvd_src/image_io.o \
cvd_src/bayer.o \
cvd_src/colourspace_convert.o \
cvd_src/half_sample.o \
cvd_src/draw.o \
cvd_src/yuv422.o \
cvd_src/yuv420.o \
pnm_src/pnm_grok.o \
pnm_src/bmp.o \
pnm_src/save_postscript.o \
cvd_src/fast_corner.o \
cvd_src/convolution.o \
cvd_src/nonmax_suppression.o \
cvd_src/timeddiskbuffer.o \
cvd_src/videosource.o \
@dep_objects@
################################################################################
#
# Shared objects
#
ifeq (@osx_hacks@,yes)
soname=libcvd.dylib
soname1=libcvd-@major@.dylib
soname2=libcvd-@major@.@minor@.dylib
dsoname=libcvd_debug.dylib
dsoname1=libcvd_debug-@major@.dylib
dsoname2=libcvd_debug-@major@.@minor@.dylib
shared=-dynamiclib
else
soname=libcvd.so
soname1=libcvd.so.@major@
soname2=libcvd.so.@major@.@minor@
dsoname=libcvd_debug.so
dsoname1=libcvd_debug.so.@major@
dsoname2=libcvd_debug.so.@major@.@minor@
shared=-shared
endif
OBJS=$(CVD_OBJS)
DEBUG_OBJSA=$(OBJS:cvd_src%=debug/cvd_src%)
DEBUG_OBJS=$(DEBUG_OBJSA:pnm_src%=debug/pnm_src%)
sos= $(soname) $(soname1) $(soname2)
dsos= $(dsoname) $(dsoname1) $(dsoname2)
all: libcvd.a $(soname) progs $(DTARGETS) libcvd_debug.a $(dsoname)
$(soname): $(OBJS)
rm -f $(sos)
$(LD) $(shared) -o $(soname2) $(OBJS) $(LDFLAGS) $(LOADLIBES)
ln -s $(soname2) $(soname1)
ln -s $(soname1) $(soname)
$(dsoname): $(DEBUG_OBJS)
rm -f $(dsos)
$(LD) $(shared) -o $(dsoname2) $(DEBUG_OBJS) $(LDFLAGS) $(LOADLIBES)
ln -s $(dsoname2) $(dsoname1)
ln -s $(dsoname1) $(dsoname)
libcvd.a: $(OBJS)
$(AR) crvs libcvd.a $(OBJS)
$(RANLIB) libcvd.a
libcvd_debug.a: $(DEBUG_OBJS)
$(AR) crvs libcvd_debug.a $(DEBUG_OBJS)
$(RANLIB) libcvd_debug.a
debug:
mkdir -p debug/cvd_src debug/cvd_src/IRIX debug/cvd_src/Linux debug/cvd_src/OSX debug/cvd_src/fast debug/cvd_src/i686 debug/cvd_src/noarch debug/pnm_src debug/cvd_src/thread debug/cvd_src/nothread
# Before we compile the test programs we need to augment the
# search paths with the path to libcvd, and also add libcvd to the
# libraries to use
CPPFLAGS = -I. @CPPFLAGS@
ifneq (@osx_hacks@,yes)
LDFLAGS = -Wl,-R. @LDFLAGS@
endif
LDFLAGS = -L. @LDFLAGS@
LOADLIBES = @LIBS@
PROGS=@progs@
TESTPROGS=@testprogs@
$(PROGS):$(soname)
$(TESTPROGS):$(soname)
testprogs: $(TESTPROGS)
progs: $(PROGS)
@docs@:
doxygen Doxyfile
test-fast:test/fast_test
test/fast_test test/fast_test_image/noise.pgm
#If the mandir is older than the lib, then remake. A bit of a hack
man: libcvd.a
doxygen Doxyfile
touch man
install: install-progs install-headers install-libs install-libs-debug
install-progs:progs
mkdir -p $(bindir)
[ "$(PROGS)" = "" ] || cp $(PROGS) $(bindir)
install-headers:
mkdir -p $(includedir)
cp -r cvd $(includedir)
install-libs-so:$(soname)
mkdir -p $(libdir)
cp $(soname2) $(libdir)
rm -f $(libdir)/$(soname1) $(libdir)/$(soname)
ln -s $(libdir)/$(soname2) $(libdir)/$(soname1)
ln -s $(libdir)/$(soname1) $(libdir)/$(soname)
install-libs-a:libcvd.a
mkdir -p $(libdir)
cp libcvd.a $(libdir)
install-libs:install-libs-so install-libs-a
install-libs-debug:$(dsoname) libcvd_debug.a
mkdir -p $(libdir)
cp $(dsoname2) $(libdir)
rm -f $(libdir)/$(dsoname1) $(libdir)/$(dsoname)
ln -s $(libdir)/$(dsoname2) $(libdir)/$(dsoname1)
ln -s $(libdir)/$(dsoname1) $(libdir)/$(dsoname)
cp libcvd_debug.a $(libdir)
clean:
/bin/rm -f tmp libcvd.a $(sos) libcvd_debug.a $(dsos)
find . -name '*.o' | xargs rm -f
find progs/ -perm +0100 -type f | xargs rm -f
rm -rf html man
distclean: clean
/bin/rm -f Makefile config.h config.status config.cache config.log cvd/config.h .deps config.dep_tmp
/bin/rm -rf debug
.deps:
rm -f .sourcefiles
find . -name "*.cxx" -o -name "*.cc" -o -name "*.cpp" -o -name "*.c" -o -name "*.C" > .sourcefiles
rm -f .deps
bash generate_dependencies.bash "-I. $(CPPFLAGS)" > .deps
depend: .deps
.PHONY: ChangeLog
ChangeLog:
cvs log | gawk -f make/log_to_changelog.awk > ChangeLog
.PRECIOUS: %.o
%.o : %.cc
$(CXX) $(OFLAGS) -I. $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
%.o: %.cpp
$(CXX) $(OFLAGS) -I. $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
%.o: %.cxx
$(CXX) $(OFLAGS) -I. $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
%.o: %.C
$(CXX) $(OFLAGS) -I. $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
%.o: %.s
as -g -o $@ $<
debug/%.o : %.cc debug
$(CXX) -I. $(CPPFLAGS) $(CXXFLAGS) $(DEBUGEXTRA) -c $< -o $@
debug/%.o: %.cpp debug
$(CXX) -I. $(CPPFLAGS) $(CXXFLAGS) $(DEBUGEXTRA) -c $< -o $@
debug/%.o: %.cxx debug
$(CXX) -I. $(CPPFLAGS) $(CXXFLAGS) $(DEBUGEXTRA) -c $< -o $@
debug/%.o: %.C debug
$(CXX) -I. $(CPPFLAGS) $(CXXFLAGS) $(DEBUGEXTRA) -c $< -o $@
debug/%.o: %.s
as -g -o $@ $<
%: %.o
$(CXX) -o $@ $< $(LDFLAGS) -lcvd $(LOADLIBES)
include .deps
Jump to Line
Something went wrong with that request. Please try again.