Rev | Line | |
---|
[37] | 1 | # |
---|
| 2 | # Makefile for Sparse Bundle Adjustment library & demo program |
---|
| 3 | # |
---|
| 4 | CC=gcc |
---|
| 5 | CFLAGS=-O3 -funroll-loops #-Wstrict-aliasing #-g -pg |
---|
| 6 | OBJS=sba_levmar.o sba_levmar_wrap.o sba_lapack.o sba_crsm.o sba_chkjac.o |
---|
| 7 | SRCS=sba_levmar.c sba_levmar_wrap.c sba_lapack.c sba_crsm.c sba_chkjac.c |
---|
| 8 | AR=ar |
---|
| 9 | RANLIB=ranlib |
---|
| 10 | MAKE=make |
---|
| 11 | |
---|
| 12 | all: libsba.a dem |
---|
| 13 | |
---|
| 14 | libsba.a: $(OBJS) |
---|
| 15 | $(AR) crv libsba.a $(OBJS) |
---|
| 16 | $(RANLIB) libsba.a |
---|
| 17 | |
---|
| 18 | sba_levmar.o: sba.h sba_chkjac.h |
---|
| 19 | sba_levmar_wrap.o: sba.h |
---|
| 20 | sba_lapack.o: sba.h |
---|
| 21 | sba_crsm.o: sba.h |
---|
| 22 | sba_chkjac.o: sba.h sba_chkjac.h |
---|
| 23 | |
---|
| 24 | dem: |
---|
| 25 | cd demo; $(MAKE) |
---|
| 26 | |
---|
| 27 | clean: |
---|
| 28 | @rm -f $(OBJS) |
---|
| 29 | cd demo; $(MAKE) clean |
---|
| 30 | |
---|
| 31 | realclean cleanall: clean |
---|
| 32 | @rm -f libsba.a |
---|
| 33 | |
---|
| 34 | depend: |
---|
| 35 | makedepend -f Makefile $(SRCS) |
---|
| 36 | |
---|
| 37 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
---|
Note: See
TracBrowser
for help on using the repository browser.