# -*- Makefile -*-
# hand-generated Makefile.in for the imview project
# This file gets used by the configure script to generate the
# real makefile.
#
# This is somewhat hard to do but very worthwile...
# Hugues Talbot 6 Aug 2000
#
SHELL = /bin/sh
LN = /bin/ln # hopefully this works everywhere...
MV = @MV@
CP = @CP@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
subdirs = @subdirs@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
bindir = $(exec_prefix)/bin
infodir = $(prefix)/info
libdir = $(prefix)/lib/gnudl
mandir = $(prefix)/man/man1
datadir = @datadir@
datadestdir = $(datadir)/Imview
# compilers and flags
CC = @CC@
CXX = @CXX@
FLUID = @FLUID@
CPPFLAGS = @CPPFLAGS@
CFLAGS = $(CPPFLAGS) @CFLAGS@
CXXFLAGS = $(CPPFLAGS) @CXXFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@
FLTK_CONFIG = @FLTK_CONFIG@
# program to make the archive:
LIBNAME = @LIBNAME@
LIBCOMMAND = @LIBCOMMAND@
RANLIB = @RANLIB@
DSONAME = @DSONAME@
DSOCOMMAND = @DSOCOMMAND@
# executable's name
IMVIEW = imview
# if nothing else
PLATFORM = @target@
# Executable extension
EEXT = @EEXT@
# version
VERS = @MAJOR_VERSION@.@MINOR_VERSION@.@MICRO_VERSION@
CVSTAG = IMVIEW_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@
BRANCHTAG = @BRANCH_TAG@
# libraries to link with:
LDLIBS =@LDFLAGS@ @FLTKLIB@ @FLTKEXTRA@ @IMLIBS@ @XLIBS@ @X_EXTRA_LIBS@ @THREADLIB@ @POSIX_IPC_LIB@ @MATHLIB@
#GLDLIBS =@LDFLAGS@ @LIBS@ @GLLIB@ -lX11 -lXext @X_EXTRA_LIBS@ -lm
TOP = ${top_srcdir}
TARGET = ${IMVIEW}${EEXT}
# so as to include the class declarations and config.h
CXXFLAGS += -I${TOP} -I.
# installer
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
UILIB = fluid/imview_ui.a
IOLIB = io/imview_io.a
SRVLIB = server/imview_server.a
EXTLIB = extensions/imview_ext.a
CPPFILES = \
imview.cxx \
imviewWindow.cxx \
menubar.cxx \
imageViewer.cxx \
imageIO.cxx \
my_Image.cxx \
imdebug.cxx \
imtranslate.cxx \
imtransform.cxx \
pointfile.cxx \
keyboard.cxx \
menucb.cxx \
imlines.cxx \
imDrawPoint.cxx \
printPrefs.cxx \
savePrefs.cxx \
imageInfo.cxx \
transferFunction.cxx \
transferBox.cxx \
transferHistoBox.cxx \
transferFunctionBox.cxx \
spectraBox.cxx \
axisBox.cxx \
saveSpect.cxx \
printSpect.cxx \
profileBox.cxx \
userPrefs.cxx \
bivHist.cxx \
machine.cxx \
progressInfo.cxx \
rawImage.cxx \
StatusBox.cxx \
annotatePoints.cxx \
toolbar.cxx \
transferRGBFunction.cxx \
transferRGBFunctionBox.cxx \
transferRGBHistoBox.cxx \
transferRGBBox.cxx \
sliceSlider.cxx \
view3d.cxx \
simpleViewer.cxx \
registerSequence.cxx
OBJECTS = $(CPPFILES:.cxx=.o)
.SUFFIXES : .cxx .c .o .do .cc
.PHONY : targzip epm rpm help check doc fence checker insure test
.cc:
@echo "Do nothing with $<"
.cxx.o :
$(CXX) $(CXXTRA) $(CXXFLAGS) -I../include -c $<
.cxx :
$(SENTINEL) $(CXX) $(CXXTRA) $(CXXFLAGS) -I../include -o $@ $< $(UILIB) $(IOLIB) $(SRVLIB) $(EXTLIB) $(LDFLAGS) $(LDLIBS) $(LDXTRA) $(FENCE)
## All is the first target
all::
(cd fluid ; $(MAKE) )
(cd io ; $(MAKE) )
(cd server ; $(MAKE) )
(cd extensions ; $(MAKE))
$(MAKE) $(TARGET)
redoc::
- (if [ ! -e ${top_srcdir}/../imview-doc ] ; then \
echo "*** Documentation ${top_srcdir}/../imview-doc missing ***" ;\
echo "*** get it from CVS sourceforge and install it there ***" ;\
else \
(cd ${top_srcdir} ; if [ ! -L fulldoc ] ; then ln -s ../imview-doc fulldoc ; fi) ;\
(cd ${top_srcdir}/fulldoc ; ${MAKE} ) ;\
$(CP) ${top_srcdir}/fulldoc/quickhelp*.html ${top_srcdir}/fulldoc/gpl.html ${top_srcdir}/fulldoc/warranty.html ${top_srcdir}/doc ;\
$(CP) ${top_srcdir}/fulldoc/imview.man ${top_srcdir}/doc/imview.1 ;\
fi)
etags::
etags ${CPPFILES}
doc::
@echo "This command <make doc> does nothing, use <make redoc> for rebuilding the documentation"
fence::
${MAKE} FENCE=-lefence all
checker:
$(MAKE) CXX=checkerg++ all
insure:
$(MAKE) CXX=insure CXXFLAGS='-g -Wall -DINSURE_PICKY -Zoi "compiler g++"' all
$(TARGET) : $(UILIB) $(IOLIB) $(SRVLIB) $(OBJECTS)
$(SENTINEL) $(CXX) $(STATIC) $(CXXTRA) $(CXXFLAGS) -o $(TARGET) $(OBJECTS) $(UILIB) $(IOLIB) $(SRVLIB) $(EXTLIB) $(LDFLAGS) $(LDLIBS) $(LDXTRA) $(FENCE)
$(FLTK_CONFIG) --post $(TARGET)
@(cd ${TOP} ; ./buildnb)
$(UILIB):
(cd fluid ; $(MAKE) )
$(IOLIB):
(cd io ; $(MAKE) )
$(SRVLIB):
(cd server ; $(MAKE) )
$(EXTLIB):
(cd extensions ; $(MAKE) )
install: all doc install-bin install-lut install-help
# install with one level of undo if possible
# NOTE: if (diff filea fileb) is true if both files are the same
# NOTE: use $(CP) here instead of $(INSTALL) because of MacOS which requires a
# copy capable of dealing with resource forks
install-bin:
@$(mkinstalldirs) $(DESTDIR)$(bindir)
@if [ -L $(DESTDIR)$(bindir)/${IMVIEW}.bin ] ; then \
echo "Installing as ${IMVIEW}.bin" ; \
${CP} ${TARGET} $(DESTDIR)$(bindir)/${IMVIEW}-${VERS}${EEXT} ; \
(cd $(DESTDIR)$(bindir) ; \
if ( diff ${IMVIEW}.bin ${IMVIEW}-${VERS}${EEXT} ) ; then \
${MV} ${IMVIEW}.bin ${IMVIEW}.old ; \
fi ;\
${LN} -fs ${IMVIEW}-${VERS}${EEXT} ${IMVIEW}.bin ) ; \
elif [ -L $(DESTDIR)$(bindir)/${IMVIEW}${EEXT} ] ; then \
echo "Installing as ${IMVIEW}-${VERS}${EEXT}" ; \
${CP} ${TARGET} $(DESTDIR)$(bindir)/${IMVIEW}-${VERS}${EEXT} ; \
(cd $(DESTDIR)$(bindir) ; \
if ( diff ${IMVIEW}${EEXT} -${IMVIEW}-${VERS}${EEXT} ) ; then \
${MV} ${IMVIEW}${EEXT} ${IMVIEW}.old ; \
fi ;\
${LN} -fs ${IMVIEW}-${VERS}${EEXT} ${IMVIEW}${EEXT} ) ; \
else \
echo "Installing as ${IMVIEW}${EEXT}" ; \
${CP} ${TARGET} $(DESTDIR)$(bindir)/${IMVIEW}${EEXT} ; \
fi
install-lut:
@$(mkinstalldirs) $(DESTDIR)$(datadestdir)
@for i in ${top_srcdir}/support/*.lut ${top_srcdir}/support/*.jpg ; do \
${INSTALL} $$i $(DESTDIR)$(datadestdir)/ ;\
done
install-help:
@$(mkinstalldirs) $(DESTDIR)$(datadestdir)/doc
@for i in ${top_srcdir}/doc/quickhelp*.html ; do \
${INSTALL} $$i $(DESTDIR)$(datadestdir)/doc/ ;\
done
@-${INSTALL} -d $(DESTDIR)$(datadestdir)
@-${INSTALL} ${top_srcdir}/doc/gpl.html $(DESTDIR)$(datadestdir)/doc/
@-${INSTALL} ${top_srcdir}/doc/warranty.html $(DESTDIR)$(datadestdir)/doc/
@-${INSTALL} -d $(DESTDIR)$(mandir)
@-${INSTALL} ${top_srcdir}/doc/imview.1 $(DESTDIR)$(mandir)/
@gzip $(DESTDIR)$(mandir)/imview.1
# strip executables before installing.
install-strip: install-lut install-help
$(MAKE) INSTALL='$(INSTALL) -s' install-bin
uninstall: uninstall-bin uninstall-lut uninstall-doc
# should be safe... (famous last words)
uninstall-bin:
@if [ -L $(DESTDIR)$(bindir)/${IMVIEW}.bin ] ; then \
(cd $(DESTDIR)$(bindir) ; \
if [ -e ${IMVIEW}.old ] ; then \
${MV} ${IMVIEW}.old ${IMVIEW}.bin ; \
else \
${RM} ${IMVIEW}.bin ; \
fi ; \
${RM} ${IMVIEW}-${VERS}${EEXT}) ; \
elif [ -L $(DESTDIR)$(bindir)/${IMVIEW}${EEXT} ] ; then \
(cd $(DESTDIR)$(bindir) ; \
if [ -e ${IMVIEW}.old ] ; then \
${MV} ${IMVIEW}.old ${IMVIEW}${EEXT} ; \
else \
${RM} ${IMVIEW}${EEXT} ; \
fi ; \
${RM} ${IMVIEW}-${VERS}${EEXT}) ; \
else \
${RM} $(DESTDIR)$(bindir)/${IMVIEW}${EEXT} ; \
fi
uninstall-lut:
@if [ ! -L $(DESTDIR)$(bindir)/${IMVIEW}.bin -o -e $(DESTDIR)$(bindir)/${IMVIEW}${EEXT} ] ; then \
${RM} -rf $(DESTDIR)$(datadestdir) ;\
else \
echo "Not removing lut, as an older version of imview is still available" ;\
fi
uninstall-doc:
@if [ ! -L $(DESTDIR)$(bindir)/${IMVIEW}.bin -o -e $(DESTDIR)$(bindir)/${IMVIEW}${EEXT} ] ; then \
${RM} -rf $(DESTDIR)$(datadestdir)/doc ;\
${RM} -f $(DESTDIR)$(mandir)/imview.1.gz ;\
else \
echo "Not removing documentation, as an older version of imview is still available" ;\
fi
test:
@echo "TOP=" ${TOP}
@echo "TARGET=" ${TARGET}
@echo "whichOS=" ${whichOS}
@echo "FLDIR=" ${FLDIR}
@echo "CXXTRA=" ${CXXTRA}
@echo "CXX=" ${CXX}
@echo "FLUID=" ${FLUID}
@echo "datadestdir=" ${datadestdir}
@echo "VERS= " ${VERS}
@echo "PLATFORM= " ${PLATFORM}
coverage:
${MAKE} CXX="$(CXX) -fprofile-arcs -ftest-coverage" all
profile:
${MAKE} CXX="$(CXX) -pg" all
sentinel::
${MAKE} "SENTINEL=sentinel" CXX="$(CXX) -static" all ;\
# the host stuff.
SOLARISHOST = tweed
OSF1HOST = fire
IRIXHOST = ourimbah
SUNOSHOST = crackers
LINUXHOST = boolaroo
NTHOST = boolaroo # cross-compilation
FTPHOST = extra.cmis.csiro.au
FTPDIR = IA/talbot/clients/free/
solaris:
rsh $(SOLARISHOST) '(cd ${PWD} ; \
${MAKE} FLDIR=${FLDIR} CXX=c++ CXXFLAGS="-O2 $(CXXFLAGS)" clean depend install)'
osf1:
rsh $(OSF1HOST) '(cd ${PWD} ; \
${MAKE} clean depend optimize)'
irix:
rsh $(IRIXHOST) '(cd ${PWD} ; \
${MAKE} clean depend optimize)'
sunos:
rsh $(SUNOSHOST) '(cd ${PWD} ;\
${MAKE} clean depend optimize)'
linux:
ssh $(LINUXHOST) '(cd ${PWD} ;\
${MAKE} clean depend optimize)'
debug:
$(MAKE) CXX=gcc++ CXXFLAGS='-g -Wall' clean depend all
optimize:
$(MAKE) CXX='${CXX} -O2' all
fast:
$(MAKE) 'MAKE=${MAKE} -j 2' -j 2 all
vfast:
$(MAKE) 'MAKE=${MAKE} -j 4' -j 4 all
allplatforms: solaris osf1 irix sunos linux
clobber: realclean
-rm -rf Solaris OSF1 Linux IRIX SunOS
realclean:
(cd fluid; $(MAKE) realclean)
(cd io; $(MAKE) realclean)
(cd server ; $(MAKE) realclean)
-@ rm -f *.o $(TARGET) $(CLEAN) core *~ makedepend gmon.out *.da *.bb *.bbg *.log .ix[0-9]* .inslog*
@touch makedepend
clean :
(cd fluid ; $(MAKE) FLDIR=${FLDIR} clean)
(cd io; $(MAKE) FLDIR=${FLDIR} clean)
(cd server ; $(MAKE) FLDIR=${FLDIR} clean)
-@ rm -f *.o $(TARGET) $(CLEAN)
# in the last line, replace patchlevel.h with a known file imview.cxx already depends upon.
# that's the most elegant way I've found not to leave garbage in the makedepend file.
# Think about it. It's hard as the path to patchlevel.h is unknown, can contain whitespaces, etc...
depend: $(CPPFILES) $(CFILES)
(cd fluid ; ${MAKE} depend)
(cd io ; $(MAKE) depend)
(cd server ; $(MAKE) depend)
(cd extensions ; $(MAKE) depend)
$(CXX) $(CXXTRA) $(CXXFLAGS) -M $^ > makedepend
@echo "removing dependency on patchlevel.h"
@(sed 's/patchlevel.h/imview.hxx/' < makedepend > /tmp/makedepend.tmp ; $(RM) makedepend; $(CP) /tmp/makedepend.tmp makedepend)
makedepend:
touch makedepend
${MAKE} depend
include makedepend
snapshot:
@echo "Try <make tag_snapshot> or <make branch_snapshot>"
# a rule to make snapshots
tag_snapshot:
@echo
@(grep totalbnb ${top_srcdir}/patchlevel.h | awk '{print $$4}' > /tmp/imview_bnb)
@echo "-> Note: The current version is"
@echo "->" $(VERS) "build number" `cat /tmp/imview_bnb`
@echo "-> The current imview tag is"
@echo "->" $(CVSTAG)_`cat /tmp/imview_bnb`
@echo
@echo "-> Tagging the repository"
@(BN=`cat /tmp/imview_bnb` ; cd ${top_srcdir} ; cvs tag ${CVSTAG}_$${BN} imview)
@echo
@echo "-> CVS export of all the files"
(BN=`cat /tmp/imview_bnb` ; \
cd ${top_srcdir}/export ; \
if [ -d imview-${VERS} ] ; then rm -rf imview-${VERS} ; fi ; \
cvs export -r ${CVSTAG}_$${BN} imview ; $(MV) imview imview-${VERS})
@echo "-> Tarring the snapshot"
(cd ${top_srcdir}/export ; tar czf imview-src-${VERS}.tar.gz imview-${VERS})
@echo
@(rm -f /tmp/imview_bnb)
@echo "-> Done."
# branch tag snapshot
branch_snapshot:
@echo
@(grep totalbnb ${top_srcdir}/patchlevel.h | awk '{print $$4}' > /tmp/imview_bnb)
@echo "-> Note: The current version is"
@echo "->" $(VERS) "build number" `cat /tmp/imview_bnb`
@echo "-> The current imview tag is"
@echo "->" $(CVSTAG)_`cat /tmp/imview_bnb`
@echo
@echo "-> CVS export of all the files"
(BN=`cat /tmp/imview_bnb` ; \
cd ${top_srcdir}/export ; \
if [ -d imview-${VERS} ] ; then rm -rf imview-${VERS} ; fi ; \
cvs export -r ${BRANCHTAG} imview ; $(MV) imview imview-${VERS})
@echo "-> Tarring the snapshot"
(cd ${top_srcdir}/export ; tar czf imview-src-${VERS}.tar.gz imview-${VERS})
@echo
@(rm -f /tmp/imview_bnb)
@echo "-> Done."
ftpsnap:
@echo "-> placing the snapshot for anonymous ftp in " $(FTPDIR)
@echo
@ncftpput -u ${USER} $(FTPHOST) $(FTPDIR) ${top_srcdir}/export/imview-src-$(VERS).tar.gz
manifest:
@echo "Manifest:"
- @(cd ${top_srcdir} ;\
find . -type f -print | sed -e 's%\./%%' -e '/CVS/d' -e '/~$$/d' -e '/^obj/d' -e '/^distrib/d' -e '/^autom4te/d' -e '/^export/d' | sort 2>&1 > /tmp/MANIFEST.new1 ;\
if [ "`diff /tmp/MANIFEST.new1 MANIFEST`" != "" ] ; then \
echo "*** Difference in MANIFEST, see /tmp/MANIFEST.new1 " ;\
diff /tmp/MANIFEST.new1 MANIFEST ;\
else \
echo "No diff -- tarring distribution" ;\
tar czf export/imview-src-${VERS}.tar.gz `cat MANIFEST` ;\
(cd export ; mkdir imview-${VERS} ; cd imview-${VERS} ; tar zxf ../imview-src-${VERS}.tar.gz) ;\
rm export/imview-src-${VERS}.tar.gz ;\
echo "Tarring again" ;\
(cd export ;tar czvf imview-src-${VERS}.tar.gz imview-${VERS}) ;\
rm -rf export/imview-${VERS} ;\
fi)
rpm:
@echo
@if [ -e /etc/redhat-release ] ; then \
echo "-> Making RPM for `cat /etc/redhat-release`" ; \
else \
echo "-> Making RPM for `uname`" ;\
fi
@(if [ ! -f ${top_srcdir}/export/imview-src-${VERS}.tar.gz ] ; then echo "" ; \
echo "*** You must make a snapshot or a manifest first (make snapshot/make manifest)" ; exit 1 ; fi)
@echo "-> Linking source package"
(cd ${top_srcdir}/distrib/redhat/SOURCES ; ln -sf ../../../export/imview-src-${VERS}.tar.gz . )
@echo "-> Creating spec file"
(cd ${top_srcdir}/distrib/redhat ; sed -e "s/@VERSION@/${VERS}/g" imview-generic.spec > SPECS/imview-${VERS}-1.spec)
@echo "-> Making RPM"
(unset LD_LIBRARY_PATH ; cd ${top_srcdir}/distrib/redhat ; \
export MYTOPDIR=`pwd` ; \
cd SPECS ;\
rpmbuild --define "_topdir $${MYTOPDIR}" --buildroot $${MYTOPDIR}/root -ba imview-${VERS}-1.spec)
@echo "-> Done."
ftprpm:
@echo "-> placing RPM for anonymous ftp in " $(FTPDIR)
@echo
@ncftpput -u ${USER} $(FTPHOST) $(FTPDIR) ${top_srcdir}/distrib/redhat/RPMS/imview-${VERS}.rpm
semistat:
-if [ -f ./imview -a -x `which ldd` ] ; then \
statlibcxx=`ldd ./imview | grep libstdc++ | sed -e 's%.*=>\(.*libstdc.*\)\.so.*%\1.a%'` ;\
if [ "$${statlibcxx}" != "" ] ; then \
echo $${statlibcxx} ;\
extrastatlib="-append $${statlibcxx} -- " ;\
rm imview ;\
${MAKE} CXX='gcc' SENTINEL="${top_srcdir}/statisize.py $${extrastatlib}" all ;\
else \
rm imview ;\
${MAKE} SENTINEL="${top_srcdir}/statisize.py" all ;\
fi \
else \
rm imview ;\
${MAKE} SENTINEL="${top_srcdir}/statisize.py" all ;\
fi
## for OSX only
bundle:
-if [ -f ./imview -a -x `which otool` ] ; then \
otool -L ./imview | grep 'opt\|sw' | awk '{print $$1}' > extra.lib ;\
if [ -d Imview.app ] ; then rm -rf Imview.app ; fi ;\
${CP} -r ${top_srcdir}/distrib/OSX/Imview.app . ;\
mkdir -p Imview.app/Contents/Frameworks ;\
${CP} ./imview Imview.app/Contents/MacOS/imview ;\
for a in `cat extra.lib` ; do \
${CP} $$a Imview.app/Contents/Frameworks ;\
b=`basename $$a` ;\
install_name_tool \
-id @executable_path/../Frameworks/$$b \
Imview.app/Contents/Frameworks/$$b ;\
install_name_tool \
-change $$b \
@executable_path/../Frameworks/$$b \
Imview.app/Contents/MacOS/imview ;\
done ;\
fi
# problem here: we are starting to heavily depend on GCC. mind you the idea
# is to provide a semi-static executable that will work everywhere, not necessarily
# the best performances
epm:
@echo "1-> Re-linking a NORMAL executable"
-rm imview ; ${MAKE} all
@echo "2-> Re-linking a static imview"
${MAKE} semistat
@echo "3-> Running Easy Package Manager"
${MAKE} epmproper
@echo "-> Done."
epmproper:
(TGZDIR=`epm -e` ; export TGZDIR ; \
epm --setup-image ${top_srcdir}/fulldoc/images/setup.xpm -v imview ;\
$(CP) $${TGZDIR}/imview-${VERS}-$${TGZDIR}.tar.gz ${top_srcdir}/distrib/binaries)
ftpepm:
@echo "-> placing EPM for anonymous ftp in " $(FTPDIR)
@echo
@(TGZDIR=`epm -e` ; export TGZDIR ; \
ncftpput -u ${USER} $(FTPHOST) $(FTPDIR) $${TGZDIR}/imview-${VERS}-$${TGZDIR}.tar.gz)
@ncftpls -u $(USER) -l -x -rt ftp://$(FTPHOST)/$(FTPDIR)
targzip:
@echo
@echo " -> Binary for ${PLATFORM}"
- mkdir ${top_srcdir}/tmp
- rm -rf ${top_srcdir}/tmp/*
- mkdir ${top_srcdir}/tmp/imview-${VERS}-${PLATFORM}
mkdir ${top_srcdir}/tmp/imview-${VERS}-${PLATFORM}/lut
mkdir ${top_srcdir}/tmp/imview-${VERS}-${PLATFORM}/doc
@echo " -> Re-linking a static version (for redistribution)"
rm ./imview
${MAKE} STATIC='-static' all # re-link a static version
- strip ./imview
$(CP) ./imview ${top_srcdir}/tmp/imview-${VERS}-${PLATFORM}/
$(CP) ${top_srcdir}/support/*.lut ${top_srcdir}/tmp/imview-${VERS}-${PLATFORM}/lut
$(CP) ${top_srcdir}/doc/*.html ${top_srcdir}/tmp/imview-${VERS}-${PLATFORM}/doc
(cd ${top_srcdir}/tmp/ ; tar zcf imview-${VERS}-${PLATFORM}.tar.gz imview-${VERS}-${PLATFORM})
$(CP) ${top_srcdir}/tmp/imview-${VERS}-${PLATFORM}.tar.gz ${top_srcdir}/distrib/binaries/
@echo " -> done Binary for ${PLATFORM}"
check:
${top_srcdir}/check/minimal.exp ${USER} ./imview ${top_srcdir}
help:
@echo "Standard targets:"
@echo " depend : Computes dependencies"
@echo " all : Makes everything"
@echo " check : Runs test"
@echo " doc : builds the HTML online doc"
@echo " install : Installs everything"
@echo " clean : Cleans"
@echo " uninstall : Uninstalls present version"
@echo ""
@echo "Developers targets"
@echo " snapshot : Makes a release (needs CVS'ed version)"
@echo " manifest : Makes a release (from current distribution, not CVS)"
@echo " rpm : Makes a RedHat RPM (needs a snapshot or a manifest)"
@echo " epm : Makes a portable binary package (no snapshot needed)"
@echo " fast : fast (== all) build on 2-proc SMP machines"
@echo " vfast : very fast (== all) build on 4-proc SMP machines"
@echo " fence : Makes an electric-fence executable (memory debugging)"
@echo " realclean : Deletes all cruft"
@echo ""
@echo "Publishing targets"
@echo " ftpsnap : publishes the source snapshot"
@echo " ftprpm : publishes the latest RPM"
@echo " ftpepm : publishes the latest EPM"
@echo ""
@echo "Non-portable/deprecated targets"
@echo " coverage : Force a build for gcov (Use configure for this)"
@echo " profile : Makes an exec for gprof (Use configure for this)"
@echo " checker : Makes a checker-gcc exec (doesn't work anymore)"
@echo " insure : Makes an insure exec (may still work...)"
@echo " sentinel : Makes a sentinel exec (doesn't work anymore)"
@echo " debug : Force a debug build, (use configure now)"
@echo " solaris : Build a solaris exec (don't use)"
@echo " osf1 : Build for DEC/Compaq osf-1/DEC Unix/Tru64"
@echo " irix : Build an Irix exec (don't use)"
@echo " sunos : Build for SunOS (4.x) (don't use)"
@echo " linux : Build for Linux (don't use)"
@echo " allplatform : Build for all the above, (don't use)"
@echo " clobber : realclean for all platforms (don't use)"
@echo " optimize : Force an optimized build (don't use)"
# automatic re-running of configure if the ocnfigure.in file has changed
${srcdir}/configure: configure.in aclocal.m4 imview.list.in
cd ${srcdir} && autoconf
# autoheader might not change config.h.in, so touch a stamp file
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.in aclocal.m4
# cd ${srcdir} && autoheader
echo timestamp > ${srcdir}/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
Makefile: Makefile.in config.status fluid/Makefile.in io/Makefile.in server/Makefile.in
./config.status
config.status: configure
./config.status --recheck