summaryrefslogtreecommitdiff
path: root/libmoped/libs/sba-1.6/Makefile.vc
blob: 40b2a373a2cd948b10cf4216458baa5e73d7f7d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# MS Visual C Makefile for Sparse Bundle Adjustment library & demo program
# At the command prompt, type
# nmake /f Makefile.vc
#
# NOTE: To use this, you must have MSVC installed and properly
# configured for command line use (you might need to run VCVARS32.BAT
# included with your copy of MSVC). Another option is to use the
# free MSVC toolkit from http://msdn.microsoft.com/visualc/vctoolkit2003/
#
CC=cl /nologo
# YOU MIGHT WANT TO UNCOMMENT THE FOLLOWING LINE
#SPOPTFLAGS=/GL /G7 /arch:SSE2 # special optimization: resp. whole program opt., Athlon/Pentium4 opt., SSE2 extensions
# /MD COMPILES WITH MULTIPLE THREADS SUPPORT. TO DISABLE IT, SUBSTITUTE WITH /ML
# FLAG /EHsc SUPERSEDED /GX IN MSVC'05. IF YOU HAVE AN EARLIER VERSION THAT COMPLAINS ABOUT IT, CHANGE /EHsc TO /GX
CFLAGS=/I. /MD /W3 /EHsc /D_CRT_SECURE_NO_DEPRECATE /O2 $(SPOPTFLAGS) # /Wall
OBJS=sba_levmar.obj sba_levmar_wrap.obj sba_lapack.obj sba_crsm.obj sba_chkjac.obj
SRCS=sba_levmar.c sba_levmar_wrap.c sba_lapack.c sba_crsm.c sba_chkjac.c
AR=lib /nologo
MAKE=nmake /nologo

all: sba.lib dem

sba.lib: $(OBJS)
	$(AR) /out:sba.lib $(OBJS)

sba_levmar.obj: sba.h sba_chkjac.h compiler.h
sba_levmar_wrap.obj: sba.h
sba_lapack.obj: sba.h compiler.h
sba_crsm.obj: sba.h
sba_chkjac.obj: sba.h sba_chkjac.h compiler.h

dem:
	cd demo
	$(MAKE) /f Makefile.vc
	cd ..

clean:
	-del $(OBJS)
	cd demo
	$(MAKE) /f Makefile.vc clean
	cd ..\matlab
	$(MAKE) /f Makefile.w32 clean
	cd ..

realclean cleanall: clean
	-del sba.lib