summaryrefslogtreecommitdiff
path: root/libmoped/libs/sba-1.6/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libmoped/libs/sba-1.6/Makefile')
-rw-r--r--libmoped/libs/sba-1.6/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/libmoped/libs/sba-1.6/Makefile b/libmoped/libs/sba-1.6/Makefile
new file mode 100644
index 0000000..cc6f5d8
--- /dev/null
+++ b/libmoped/libs/sba-1.6/Makefile
@@ -0,0 +1,34 @@
+#
+# Makefile for Sparse Bundle Adjustment library & demo program
+#
+CC=gcc
+#ARCHFLAGS=-march=pentium4 # YOU MIGHT WANT TO UNCOMMENT THIS FOR P4
+CFLAGS=$(ARCHFLAGS) -O3 -funroll-loops -Wall #-Wstrict-aliasing #-g -pg
+OBJS=sba_levmar.o sba_levmar_wrap.o sba_lapack.o sba_crsm.o sba_chkjac.o
+SRCS=sba_levmar.c sba_levmar_wrap.c sba_lapack.c sba_crsm.c sba_chkjac.c
+AR=ar
+RANLIB=ranlib
+MAKE=make
+
+all: libsba.a
+
+libsba.a: $(OBJS)
+ $(AR) crv libsba.a $(OBJS)
+ $(RANLIB) libsba.a
+
+sba_levmar.o: sba.h sba_chkjac.h compiler.h
+sba_levmar_wrap.o: sba.h
+sba_lapack.o: sba.h compiler.h
+sba_crsm.o: sba.h
+sba_chkjac.o: sba.h sba_chkjac.h compiler.h
+
+clean:
+ @rm -f $(OBJS)
+
+realclean cleanall: clean
+ @rm -f libsba.a
+
+depend:
+ makedepend -f Makefile $(SRCS)
+
+# DO NOT DELETE THIS LINE -- make depend depends on it.