head	0.3;
access;
symbols;
locks
	kg:0.3; strict;
comment	@# @;


0.3
date	95.02.28.02.32.14;	author kg;	state Exp;
branches;
next	0.2;

0.2
date	94.07.24.03.30.39;	author kyriakos;	state Exp;
branches;
next	0.1;

0.1
date	94.07.18.18.32.48;	author kg;	state Exp;
branches;
next	0.0;

0.0
date	94.07.15.01.04.07;	author kyriakos;	state Exp;
branches;
next	;


desc
@matrix++ lib makefile
@


0.3
log
@more general makefile
@
text
@SHELL=/bin/sh
PROG=matrix++.a
CC=g++
CPP=$(CC) -E

RM=rm -f 
SED=sed
MV=mv

# define __RUN_TIME_CHECKING__ or __DEBUG__ here.
# __RUN_TIME_CHECKING__: to debug things if your program doesnt work
# __DEBUG__: to debug things if __RUN_TIME_CHECKING__ doesnt show anything,
# or if you are adding new features.
EXTRA_DEFINES= -D__RUN_TIME_CHECKING__

CFLAGS= -Wall $(EXTRA_DEFINES)

AR=ar rc
RANLIB=ranlib

### you shouldn't have to change anything after this line ###

MATOBJS= add.o assignment.o backsub.o cofactor.o constractors.o \
det.o inverse.o io.o lu.o minor.o multiply.o peekpoke.o         \
solve.o subtract.o transpose.o

$(PROG): $(MATOBJS)
	$(RM) $(PROG)
	$(AR) $(PROG) $(MATOBJS)
	$(RANLIB) $(PROG)

all: $(PROG)

clean:
	$(RM) *.o *.a core *~

depend dep: 
	$(SED) '/\#\#\# Dependencies/q' < Makefile > tmp_make
	for i in *.c; do $(CPP) -MM $$i; done >> tmp_make
	$(MV) tmp_make Makefile


### Dependencies:
add.o : add.c matrix.h 
assignment.o : assignment.c matrix.h 
backsub.o : backsub.c matrix.h 
cofactor.o : cofactor.c matrix.h 
constractors.o : constractors.c matrix.h 
det.o : det.c matrix.h 
inverse.o : inverse.c matrix.h 
io.o : io.c matrix.h 
lu.o : lu.c matrix.h 
minor.o : minor.c matrix.h 
multiply.o : multiply.c matrix.h 
peekpoke.o : peekpoke.c matrix.h 
solve.o : solve.c matrix.h 
subtract.o : subtract.c matrix.h 
test.o : test.c matrix.h 
transpose.o : transpose.c matrix.h 
@


0.2
log
@changed from linux to generic
@
text
@a5 2
DO=all

d18 2
a19 2
AR=ar rcs   # rc for the suns, or if rcs fails
RANLIB=echo # ranlib for the suns
a25 14

list:
	@@echo "Look for your operating system, and type one of the"
	@@echo "following to build the matrix lib for that system."
	@@echo
	@@echo "generic sun"
	@@echo
	@@echo "To make type 'make <ostype>'"

generic:
	$(MAKE) $(DO)

sun:
	$(MAKE) AR="ar rc" RANLIB=ranlib $(DO)
@


0.1
log
@changed matrix.a to matrix++.a
@
text
@d33 1
a33 1
	@@echo "linux sun"
d37 1
a37 1
linux:
@


0.0
log
@initial version
@
text
@d2 1
a2 1
PROG=matrix.a
@
