~pablo.dangelo/sba/sba_app

1 by Pablo d'Angelo
initial commit
1
#
2
# Makefile for Sparse Bundle Adjustment library & demo program
3
#
4
CC=icc #-w1 # warnings on
5
CXX=icpc
6
CFLAGS=-Wcheck -O3 -tpp7 -xW -march=pentium4 -mcpu=pentium4 -ip -ipo -unroll #-g # -fno-alias
7
OBJS=sba_levmar.o sba_levmar_wrap.o sba_lapack.o sba_crsm.o sba_chkjac.o
8
SRCS=sba_levmar.c sba_levmar_wrap.c sba_lapack.c sba_crsm.c sba_chkjac.c
9
AR=xiar
10
#RANLIB=ranlib
11
MAKE=make
12
13
all: libsba.a dem
14
15
libsba.a: $(OBJS)
16
	$(AR) crvs libsba.a $(OBJS)
17
	#$(RANLIB) libsba.a
18
19
sba_levmar.o: sba.h sba_chkjac.h compiler.h
20
sba_levmar_wrap.o: sba.h
21
sba_lapack.o: sba.h compiler.h
22
sba_crsm.o: sba.h
23
sba_chkjac.o: sba.h sba_chkjac.h compiler.h
24
25
dem:
26
	cd demo; $(MAKE) -f Makefile.icc
27
28
clean:
29
	@rm -f $(OBJS)
30
	cd demo; $(MAKE) -f Makefile.icc clean
31
	cd matlab; $(MAKE) -f Makefile clean
32
33
realclean cleanall: clean
34
	@rm -f libsba.a
35
36
depend:
37
	makedepend -f Makefile.icc $(SRCS)
38
39
# DO NOT DELETE THIS LINE -- make depend depends on it.