📄 makefile
字号:
# ------------------ Compilation options ------------------------# Loads math library. LIBS = -lmGET = getCFLAGS = -Wall -O3 -DNO_DEBUG -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3 -ansiDEPEND= makedepend $(CFLAGS)CC = g++-4.0.2CXX = g++-4.0.2# --------------------- Code modules ----------------------------# Source filesSRCS = main.cpp imload.cpp os_mapping.cpp# Object filesOBJ = main.o imload.o os_mapping.o# DefinitionsDEFS = image.h fasthessian.h ipoint.h surf.h imload.h# ------------------------ Rules --------------------------------#$(SRCS):# $(GET) $@# Link against static librarysurf.ln: ${OBJ} libSurf.so ${CC} -o $@ ${CFLAGS} main.o imload.o os_mapping.o -static libSurf.a ${LIBS}# Small matching demo applicationmatch.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.lnclean: -rm *.o surf.ln match.ln#depend: $(SRCS)# $(DEPEND) $(SRCS)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -