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


1.7
date     91.03.05.17.04.15;  author meuer;  state Exp;
branches ;
next     1.6;

1.6
date     91.03.04.11.24.34;  author meuer;  state Exp;
branches ;
next     1.5;

1.5
date     91.02.20.17.08.51;  author meuer;  state Exp;
branches ;
next     1.4;

1.4
date     91.02.14.15.34.25;  author meuer;  state Exp;
branches ;
next     1.3;

1.3
date     91.02.13.09.18.34;  author meuer;  state Exp;
branches ;
next     1.2;

1.2
date     91.02.12.16.00.30;  author meuer;  state Exp;
branches ;
next     1.1;

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


desc
@Part of the polygon to triangle program.
@



1.7
log
@ 
@
text
@
# $Header: /usr4/Geom_utilities/Poly2tri/RCS/Makefile,v 1.6 91/03/04 11:24:34 meuer Exp Locker: meuer $
#
# Makefile for Poly2Tri
# Mark Meuer
#
#
# The environment variable CPUTYPE must be set to iris4, sun3os3, sun3os4 or sun4


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

NAME=poly2tri
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 poly2tri
PROG_OBJS = \
	break_poly.o \
	classify.o \
	parse_command.o \
	point_in_tri.o \
	process_polygons.o \
	proj_to_plane.o \
	print_poly.o \
	main.o \
	read_poly.o \
	sort_vert.o

# These files make up the functional version of poly2tri
FUNC_OBJS = \
	poly2tri_func.o \
	classify.o \
	print_poly.o \
	point_in_tri.o \
	proj_to_plane.o \
	sort_vert.o

all:	${NAME} libpoly2tri.a func_test
	@@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} :  poly2tri.h

${FUNC_OBJS} : poly2tri.h

libpoly2tri.a: ${FUNC_OBJS} Makefile
	@@echo "Using Makefile settings for machine ${CPUTYPE}."
	ar ruv ${@@} ${FUNC_OBJS}
	${RANLIB} ${@@}

func_test : func_test.o libpoly2tri.a
	@@echo "Using Makefile settings for machine ${CPUTYPE}."
	${CC} ${CFLAGS} -o ${@@} func_test.o  -L. -lpoly2tri ${LIBPATH} ${LIBS} ${MACHINE_LIB} -lm

install: all
	@@echo "Using Makefile settings for machine ${CPUTYPE}."
	cp poly2tri ${BIN_DIR}
	chmod a+rx ${BIN_DIR}/poly2tri
	cp libpoly2tri.a ${LIB_DIR}
	chmod a+r ${LIB_DIR}/libpoly2tri.a
	cp poly2tri.h ${INCLUDE_DIR}
	chmod a+r ${INCLUDE_DIR}/poly2tri.h
	(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} libpoly2tri.a func_test

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

@


1.6
log
@ 
@
text
@d2 1
a2 1
# $Header: /usr4/Geom_utilities/Poly2tri/RCS/Makefile,v 1.5 91/02/20 17:08:51 meuer Exp Locker: meuer $
d77 10
@


1.5
log
@ 
@
text
@d2 1
a2 1
# $Header: /usr2/meuer/Geom_utilities/Poly2tri/RCS/Makefile,v 1.4 91/02/14 15:34:25 meuer Exp Locker: meuer $
d34 2
a35 13
SRCS = \
	break_poly.c \
	classify.c \
	parse_command.c \
	point_in_tri.c \
	process_polygons.c \
	print_poly.c \
	project_to_plane.c \
	main.c \
	read_poly.c \
	sort_verticies.c

OBJS = \
d41 1
a41 1
	project_to_plane.o \
d45 1
a45 1
	sort_verticies.o
d47 11
a57 1
all:	${NAME}
d60 3
a62 2
${NAME}: ${OBJS} Makefile 
	${CC} ${CFLAGS} -o ${NAME} ${OBJS}  ${LIBPATH} ${LIBS} ${MACHINE_LIB} -lm
d64 1
a64 1
${OBJS} :  poly2tri.h
d66 11
d78 1
d82 2
a83 1
	-rm -f ${NAME}
@


1.4
log
@*** empty log message ***
@
text
@d2 1
a2 1
# $Header: /usr2/meuer/Geom_utilities/Poly2tri/RCS/Makefile,v 1.3 91/02/13 09:18:34 meuer Exp Locker: meuer $
d26 4
a29 2
IPATH= -I.
CFLAGS=	 -prototypes -g ${IPATH}
a36 1
	errors.c \
d43 2
a44 2
	open_file.c \
	read_poly.c
a48 1
	errors.o \
d55 2
a56 2
	open_file.o \
	read_poly.o
d62 1
a62 1
	${CC} ${CFLAGS} -o ${NAME} ${OBJS}  ${MACHINE_LIB} -lm
@


1.3
log
@*** empty log message ***
@
text
@d2 1
a2 1
# $Header: /usr2/meuer/Geom_utilities/Poly2tri/RCS/Makefile,v 1.2 91/02/12 16:00:30 meuer Exp Locker: meuer $
d37 1
d50 1
@


1.2
log
@*** empty log message ***
@
text
@d2 1
a2 1
# $Header: /usr2/meuer/Geom_utilities/Poly2tri/RCS/Makefile,v 1.1 91/02/08 17:15:53 meuer Exp Locker: meuer $
d34 1
d39 1
d46 1
d50 1
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# $Header: /usr2/meuer/Geom_utilities/Arc2list/RCS/Makefile,v 1.2 91/02/05 15:26:54 meuer Exp $
d27 2
a28 2
#CFLAGS=	 -prototypes -g ${IPATH}
CFLAGS=	 -g ${IPATH}
d36 2
d46 2
d57 2
@
