add matrix operations support
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1734 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
714ef7a560
commit
922406496b
@ -33,22 +33,22 @@ SHLIB_SUFFIX=@SHLIB_SUFFIX@
|
|||||||
CWD=$(PWD)
|
CWD=$(PWD)
|
||||||
#
|
#
|
||||||
|
|
||||||
OBJS=matrices.o
|
OBJS=matrix.o
|
||||||
SOBJS=matrices@SHLIB_SUFFIX@
|
SOBJS=matrix@SHLIB_SUFFIX@
|
||||||
|
|
||||||
#in some systems we just create a single object, in others we need to
|
#in some systems we just create a single object, in others we need to
|
||||||
# create a libray
|
# create a libray
|
||||||
|
|
||||||
all: $(SOBJS)
|
all: $(SOBJS)
|
||||||
|
|
||||||
matrices.o: $(srcdir)/matrices.c
|
matrix.o: $(srcdir)/matrix.c
|
||||||
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/matrices.c -o matrices.o
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/matrix.c -o matrix.o
|
||||||
|
|
||||||
@DO_SECOND_LD@%@SHLIB_SUFFIX@: %.o
|
@DO_SECOND_LD@%@SHLIB_SUFFIX@: %.o
|
||||||
@DO_SECOND_LD@ @SHLIB_LD@ -o $@ $<
|
@DO_SECOND_LD@ @SHLIB_LD@ -o $@ $<
|
||||||
|
|
||||||
@DO_SECOND_LD@matrices@SHLIB_SUFFIX@: matrices.o
|
@DO_SECOND_LD@matrix@SHLIB_SUFFIX@: matrix.o
|
||||||
@DO_SECOND_LD@ @SHLIB_LD@ -o matrices@SHLIB_SUFFIX@ matrices.o
|
@DO_SECOND_LD@ @SHLIB_LD@ -o matrix@SHLIB_SUFFIX@ matrix.o
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(LIBDIR)
|
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(LIBDIR)
|
||||||
|
1676
library/matrices/matrix.c
Normal file
1676
library/matrices/matrix.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user