#%#### makefile AUTOMATICALLY GENERATED ######
#%############### DO NOT EDIT ################
#%### EDIT makefile.src AND make config ######
DEPTH = ../
CONFIG = ../config/hp700-hpux01
HERE = include/
# Configuration file for HP 9000/700 series running HP-UX 10.01 with gcc
# Note that you will probably need to change the INCX11 directive at the
# end of this file

ExtraCFLAGS =

ROFF = nroff
ROFFOPT = -man
ROFFPIPE = | lpr

OTHERJUNK = core *~ #*#

LDOPTS = -a shared
LIBBOBCAT = -L /usr/lib/X11R4 -lXwindow -lsb -ldld -lXhp11 -lX11

LIBX11 = /usr/lib/X11R4/libX11.sl
INCX11 = -I/usr/sww/X11/include

RI = ../include
RL = ../lib
DIRS =
ALLDIRS =
PGMS =

ExtraLIBS = 
LIBS = $(RL)/librle.a $(DIRLIBS)  ${ExtraLIBS}

MachFLAGS =  -Dhpux
CFLAGS = -O $(DFLAGS) $(DIRFLAGS) $(ExtraCFLAGS) $(IFLAGS) $(MachFLAGS) 
IFLAGS = -I. -I$(RI)

CC=gcc

SHELL = /bin/sh

#
# Makefile for include subdirectory.
# 
# Only thing to do here is install the .h files somewhere if INC_DEST is
# set.
#

# default action builds rle_config.h
default: rle_config.h

#alldefs CONFIGDEFS
CONFIGDEFS =  X11 ABEKASA60 ABEKASA62 ALIAS CUBICOMP GIF GRAYFILES MACPAINT POSTSCRIPT TARGA TIFF2p4 VICAR WASATCH WAVEFRONT GCC HPUX800CC NEED_SETLINEBUF NO_RANLIB SYS_V_SETPGRP USE_PROTOTYPES USE_SHARED_LIB USE_STRING_H VOID_STAR

#ifdef INC_DEST
#set DEST INC_DEST
DEST = /users/ptdesign/src/utils/urt/hppa/
#endif

HDRS = \
	exit_status.h \
	pyramid.h \
	rle.h \
	rle_code.h \
	rle_put.h \
	rle_raw.h \
	rle_config.h

post-config: rle_config.h

rle_config.h: ${CONFIG} makefile
	sh make-config-h ${CONFIGDEFS} >rle_config.h
	cat rle_config.tlr >>rle_config.h

install: $(HDRS)
	@sh -c "if test 'x$(DEST)' != x ; then \
		if test 'x$(HDRS)' != x ; then eval \
			'for hdr in $?; do \
				echo cp \$$hdr $(DEST)/\$$hdr ; \
				cp \$$hdr $(DEST)/\$$hdr; \
			done' ; \
		else \
		    true ; \
		fi ; \
	else \
		true ; \
	fi"
	touch install

# Nothing to clean
clean:
	rm rle_config.h

# Remove installed headers
pristine:
	@-if test "x$(DEST)" != x ; then eval \
		'for hdr in $(HDRS); do \
			echo rm -f $(DEST)/$$hdr; \
			rm -f $(DEST)/$$hdr; \
		done' ; \
	else \
		true ; \
	fi
	rm -f install

################ Beginning of makefile.tlr ################
# Stuff that goes at the end of all the makefiles, but is not
# configuration parameters should be in this file.  It is included
# after the makefile.src.

subdirs:
	@sh -c "if test 'x$(DIRS)' != x ; then eval \
		'set -e ; for dir in $(DIRS) ; do \
			(cd \$$dir ; echo Make ${HERE}\$$dir ; \
			 	make $(MFLAGS) $(DIRMFLAGS) ) ; \
		done' ; \
	  else \
		true ; \
	  fi"

# Install all programs
install-pgm: $(PGMS)
	@sh -c "if test 'x$?' != x ; then eval \
		'for pgm in $? ; do \
			dpgm=\`basename \$$pgm .out\` ; \
			echo cp \$$pgm $(DEST)/\$$dpgm ; \
			cp \$$pgm $(DEST)/\$$dpgm; \
		done' ; \
	else \
	    true ; \
	fi"
	touch install-pgm

# Install all scripts
install-script: $(SCRIPTS)
	@sh -c "if test 'x$?' != x ; then eval \
		'for pgm in $? ; do \
			dpgm=\`basename \$$pgm .sh\` ; \
			echo cp \$$pgm $(DEST)/\$$dpgm ; \
			cp \$$pgm $(DEST)/\$$dpgm; \
			echo chmod a+rx $(DEST)/\$$dpgm ; \
			chmod a+rx $(DEST)/\$$dpgm; \
		done' ; \
	else \
	    true ; \
	fi"
	touch install-pgm

# Install subdirectories
install-subdirs: subdirs
	@sh -c "if test 'x$(DIRS)' != x  ; then eval \
		'for dir in $(DIRS) ; do \
			(cd \$$dir ; echo Install ${HERE}\$$dir ; \
			 make $(MFLAGS) $(DIRMFLAGS) install) ; \
		done' ; \
	  else \
		true ; \
	  fi"

#config reads the configuration file and munches the apropriate make files
config: doit
	${DEPTH}Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"

# post-config is for any actions a directory may require following
# configuration or reconfiguration.
post-config: doit

config-subdirs: doit
	@-if test 'x$(ALLDIRS)' != x ; then eval \
	    'for d in $(ALLDIRS) ; do \
		    ( cd $$d ; \
		      echo Configuring ${HERE}$$d ; \
		      ${DEPTH}Configure "${CONFIG}" "${DEPTH}" "${HERE}$$d/" \
				    "${MFLAGS}" ) \
	    done' ; \
	else \
	    true ; \
	fi

# The Alliant make prints "target up to date" if there is no action.
# We don't want this, so insert a dummy action here.
doit:
	@echo "" >/dev/null


# Clean up installed stuff and binaries
# pristine-pgm target invoked pristine target in dirs that make programs
# pristine target in library directory is different.
# 
pristine-pgm: clean-pgm
	@-if test 'x$(PGMS)' != x ; then eval \
		'for pgm in $(PGMS); do \
			dpgm=`basename $$pgm .out`; \
			echo rm -f $(DEST)/$$dpgm; \
			rm -f $(DEST)/$$dpgm; \
		done' ; \
	else \
	    true ; \
	fi
	@-if test 'x$(SCRIPTS)' != x ; then eval \
		'for pgm in $(SCRIPTS); do \
			dpgm=`basename $$pgm .sh`; \
			echo rm -f $(DEST)/$$dpgm; \
			rm -f $(DEST)/$$dpgm; \
		done' ; \
	else \
	    true ; \
	fi
	@-if test 'x$(ALLDIRS)' != x ; then eval \
	    'for dir in $(ALLDIRS); do \
		if test -d $$dir ; then \
			(cd $$dir; echo Make ${HERE}$$dir pristine ; \
			 make $(MFLAGS) pristine); \
		else \
			true; \
		fi; \
	    done' ; \
	else \
	    true ; \
	fi
	-rm -f install install-pgm

# Clean up binaries on program directories.
clean-pgm:
	-rm -f $(PGMS) install*
	-rm -f *.o *.out *.new
	-rm -f $(OTHERJUNK)
	@-if test 'x$(ALLDIRS)' != x ; then eval \
	    'for dir in $(ALLDIRS); do \
		if test -d $$dir ; then \
			(cd $$dir; echo Clean ${HERE}$$dir ; \
			 make $(MFLAGS) clean); \
		else \
			true; \
		fi; \
	    done' ; \
	else \
	    true ; \
	fi

#ifndef NO_MAKE_MAKEFILE
# Copy config action to here so that GNU make program will work.
makefile:: makefile.src
	${DEPTH}Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"
#endif

# Keep people who like to 'make depend' happy.  Allow depend::
# actions in specific makefiles if desired.
depend::

################ End of makefile.tlr ################
