📄 makefile.so
字号:
## Unix/Linux GCC Makefile for Levenberg - Marquardt minimization# Under windows, use Makefile.vc for MSVC## majord & minor shared lib numbersMAJ=2MIN=2ODIR=sobj # where to place object files for shared libCC=gccCONFIGFLAGS=-ULINSOLVERS_RETAIN_MEMORY#ARCHFLAGS=-march=pentium4 # YOU MIGHT WANT TO UNCOMMENT THIS FOR P4CFLAGS=-fPIC $(CONFIGFLAGS) $(ARCHFLAGS) -O3 -funroll-loops -Wall #-pgLAPACKLIBS_PATH=/usr/local/lib # WHEN USING LAPACK, CHANGE THIS TO WHERE YOUR COMPILED LIBS ARE!LIBOBJS=$(ODIR)/lm.o $(ODIR)/Axb.o $(ODIR)/misc.o $(ODIR)/lmlec.o $(ODIR)/lmbc.o $(ODIR)/lmblec.oLIBSRCS=lm.c Axb.c misc.c lmlec.c lmbc.c lmblec.cLAPACKLIBS=-llapack -lblas -lf2c # comment this line if you are not using LAPACK. # On systems with a FORTRAN (not f2c'ed) version of LAPACK, -lf2c is # not necessary; on others, -lf2c is equivalent to -lF77 -lI77LIBS=$(LAPACKLIBS)$(ODIR)/liblevmar.so.$(MAJ).$(MIN): $(LIBOBJS) $(CC) -shared -Wl,-soname,liblevmar.so.$(MAJ) -o $(ODIR)/liblevmar.so.$(MAJ).$(MIN) $(LIBOBJS) #-llapack -lblas -lf2c# implicit rule for generating *.o files in ODIR from *.c files$(ODIR)/%.o : %.c $(CC) $(CFLAGS) -c $< -o $@$(ODIR)/lm.o: lm.c lm_core.c lm.h misc.h compiler.h$(ODIR)/Axb.o: Axb.c Axb_core.c lm.h misc.h$(ODIR)/misc.o: misc.c misc_core.c lm.h misc.h$(ODIR)/lmlec.o: lmlec.c lmlec_core.c lm.h misc.h$(ODIR)/lmbc.o: lmbc.c lmbc_core.c lm.h misc.h compiler.h$(ODIR)/lmblec.o: lmblec.c lmblec_core.c lm.h misc.hclean: @rm -f $(LIBOBJS)cleanall: clean @rm -f $(ODIR)/liblevmar.so.$(MAJ).$(MIN)depend: makedepend -f Makefile $(LIBSRCS)# DO NOT DELETE THIS LINE -- make depend depends on it.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -