makefile

来自「scale invariant algorithm」· 代码 · 共 45 行

TXT
45
字号
# ------------------ 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 + =
减小字号Ctrl + -
显示快捷键?