-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile
44 lines (32 loc) · 1.12 KB
/
Makefile
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
# ------------------ Compilation options ------------------------
# Loads math library.
LIBS = -lm
GET = get
CFLAGS = -Wall -O3 -DNO_DEBUG -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3 -ansi
DEPEND= makedepend $(CFLAGS)
CC = g++-4.0.2
CXX = g++-4.0.2
# --------------------- Code modules ----------------------------
# Source files
SRCS = main.cpp imload.cpp os_mapping.cpp
# Object files
OBJ = main.o imload.o os_mapping.o
# Definitions
DEFS = image.h fasthessian.h ipoint.h surf.h imload.h
# ------------------------ Rules --------------------------------
#$(SRCS):
# $(GET) $@
# Link against static library
surf.ln: ${OBJ} libSurf.so
${CC} -o $@ ${CFLAGS} main.o imload.o os_mapping.o -static libSurf.a ${LIBS}
# Small matching demo application
match.ln: match.cpp imload.o
${CC} -o $@ ${CFLAGS} imload.o match.cpp -static libSurf.a -lm
# To link against a shared library, use
#surf.ln: ${OBJ} libSurf.so
# ${CC} -o $@ ${CFLAGS} main.o imload.o -L. -lSurf ${LIBS}
# Note to set LD_LIBRARY_PATH environment variable before running surf.ln
clean:
-rm *.o surf.ln match.ln
#depend: $(SRCS)
# $(DEPEND) $(SRCS)