#undef IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
#include "../config/skeleton.cf"
#include "../config/config.def"

LIBRARY = libtiff.a

CC=ccCmd
CDEBUGFLAGS= ccDebugFlags
CCFULL=ccCmd ccDebugFlags
EXTRACCOPT=

SetPrecious($(LIBRARY))

#if !defined(TIFFmakefile)
#if defined (sun) || defined(sparc) || defined(SunArchitecture)
#  if (OSMajorVersion < 5) 
#    ifdef IHaveGCC
#      define TIFFmakefile Makefile.sun.gcc
#    else
#      define TIFFmakefile Makefile.sun
#    endif
#  else
#   ifdef IHaveGCC
#      define TIFFmakefile Makefile.solaris
       CCFULL = cc ccDebugFlags
#    else
#      define TIFFmakefile Makefile.solaris
       CCFULL = cc ccDebugFlags
#    endif
#  endif
#endif
#if defined (convex) || defined(ConvexArchitecture)
#endif
#if defined (stardent) || defined(titan) || defined(StardentArchitecture)
#endif
#if defined (sgi) || defined (SGIArchitecture)
#  define TIFFmakefile Makefile.sgi
#endif
#if defined (ultrix) || defined(UltrixArchitecture)
#  define TIFFmakefile Makefile.sun.gcc
#endif
#if defined (hpux) || defined(HPArchitecture)
#  define TIFFmakefile Makefile.hpux
CCFULL=cc 
#endif
#endif



#ifndef TIFFmakefile
#if defined (SYSV) || defined(SVR4) 
#define TIFFmakefile Makefile.svr4
#else
#define TIFFmakefile Makefile.ansi
#endif
#endif

all::
	make -f TIFFmakefile all CC="$(CCFULL)"
#  ifdef DevelopmentMode
	/bin/mv $(LIBRARY) $(PRIVLIBDIR)
	make -f TIFFmakefile clean
#  endif

#if !defined (DevelopmentMode) && defined(InstallLibs)
InstallLibrary(tiff,$(PRIVLIBDIR))
#endif
        
clean::
	make -f TIFFmakefile clean

realclean:: clean
	@echo "checking for libtiff in $(PRIVLIBDIR)"
#  ifdef DevelopmentMode
	/bin/rm -f $(PRIVLIBDIR)/$(LIBRARY)
#  endif

