head     1.1;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.1
date     91.03.12.16.44.04;  author meuer;  state Exp;
branches ;
next     ;


desc
@Part of the tsum program.

@



1.1
log
@ 
@
text
@
# $Header: /usr4/Geom_utilities/Tri2quad/RCS/Makefile,v 1.1 91/03/12 11:00:26 meuer Exp $
#
# Makefile for Tri2quad
# Mark Meuer
#
#
# The environment variable CPUTYPE must be set to iris4, sun3os3, sun3os4 or sun4


SUFFIXES=.c .C .o .h
.SUFFIXES: $(SUFFIXES)

NAME=tri2quad
MAKEFILE=Makefile
MAKEDIR=../Makefiles
DESTDIR = .
#Include machine specific things
include ${MAKEDIR}/mk.${CPUTYPE}

#CPLUSPLUS = g++
CPLUSPLUS = CC
AR=	/bin/ar

CONF=
IPATH= -I. -I../Matrix_util
LIBPATH = -L../Matrix_util
LIBS = -lmatrix
CFLAGS=	 ${MACHINE_CFLAGS} -g ${IPATH}
#CFLAGS=	 -g ${IPATH}

HDRS = 

# These files make up the stand alone version of tri2quad
PROG_OBJS = \
	parse_command.o \
	process_triangles.o \
	main.o

all:	${NAME} 
	@@echo "Using Makefile settings for machine ${CPUTYPE}."
	etags *.c *.h

${NAME}: ${PROG_OBJS} Makefile 
	@@echo "Using Makefile settings for machine ${CPUTYPE}."
	${CC} ${CFLAGS} -o ${@@} ${PROG_OBJS}  ${LIBPATH} ${LIBS} ${MACHINE_LIB} -lm

${PROG_OBJS} : *.h

install: all
	@@echo "Using Makefile settings for machine ${CPUTYPE}."
	cp tri2quad ${BIN_DIR}
	chmod a+rx ${BIN_DIR}/tri2quad
	(cd Document; ${MAKE} install)
	
clean: 
	@@echo "Using Makefile settings for machine ${CPUTYPE}."
	-rm -f *.o *~ *.dvi *.aux *.ps core 

purge: clean
	@@echo "Using Makefile settings for machine ${CPUTYPE}."
	-rm -f ${NAME} 

.C.o: 
	${CPLUSPLUS} -c ${CFLAGS} $<

@
