The R Project SVN R

Rev

Rev 75730 | Rev 82887 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 75730 Rev 76650
Line 15... Line 15...
15
SOURCES_F = \
15
SOURCES_F = \
16
	dchdc.f dpbfa.f dpbsl.f dpoco.f dpodi.f dpofa.f dposl.f dqrdc.f \
16
	dchdc.f dpbfa.f dpbsl.f dpoco.f dpodi.f dpofa.f dposl.f dqrdc.f \
17
	dqrdc2.f dqrls.f dqrsl.f dqrutl.f dsvdc.f dtrco.f dtrsl.f
17
	dqrdc2.f dqrls.f dqrsl.f dqrutl.f dsvdc.f dtrco.f dtrsl.f
18
DEPENDS = $(SOURCES_C:.c=.d)
18
DEPENDS = $(SOURCES_C:.c=.d)
19
OBJECTS_BLAS = @USE_EXTERNAL_BLAS_FALSE@ blas.o @COMPILE_FORTRAN_DOUBLE_COMPLEX_FALSE@ cmplxblas.o
19
OBJECTS_BLAS = @USE_EXTERNAL_BLAS_FALSE@ blas.o @COMPILE_FORTRAN_DOUBLE_COMPLEX_FALSE@ cmplxblas.o
20
OBJECTS = $(SOURCES_C:.c=.o) $(SOURCES_F:.f=.o) \
20
OBJECTS_LIN = $(SOURCES_F:.f=.o)
21
  @BLAS_SHLIB_FALSE@ $(OBJECTS_BLAS)
21
OBJECTS = $(SOURCES_C:.c=.o) $(OBJECTS_LIN) @BLAS_SHLIB_FALSE@ $(OBJECTS_BLAS)
22
HEADERS = lbfgsb.c
22
HEADERS = lbfgsb.c
23
 
23
 
24
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
24
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
25
DISTFILES = \
25
DISTFILES = \
26
	Makefile.in Makefile.win \
26
	Makefile.in Makefile.win \
Line 43... Line 43...
43
	@cat $(DEPENDS) >> Makefile
43
	@cat $(DEPENDS) >> Makefile
44
	@touch $@
44
	@touch $@
45
 
45
 
46
R: Makedeps
46
R: Makedeps
47
	@$(MAKE) libappl.a
47
	@$(MAKE) libappl.a
-
 
48
	@BUILD_LTO_TRUE@@$(MAKE) install-Linpack
48
 
49
 
49
libappl.a: $(OBJECTS)
50
libappl.a: $(OBJECTS)
50
	@rm -f $@
51
	@rm -f $@
51
	$(AR) -cr $@ $(OBJECTS)
52
	$(AR) -cr $@ $(OBJECTS)
52
	$(RANLIB) $@
53
	$(RANLIB) $@
53
 
54
 
-
 
55
libLinpack.a: $(OBJECTS_LIN)
-
 
56
	@rm -f $@
-
 
57
	$(AR) -cr $@ $(OBJECTS_LIN)
-
 
58
	$(RANLIB) $@
-
 
59
 
-
 
60
## only for checking, so only installed locally
-
 
61
install-Linpack: libLinpack.a
-
 
62
	@$(MKINSTALLDIRS) ../../lib
-
 
63
	@$(SHELL) $(top_srcdir)/tools/copy-if-change libLinpack.a ../../lib/libLinpack.a
-
 
64
 
54
## Used with --disable-BLAS-shlib
65
## Used with --disable-BLAS-shlib
55
blas.o: $(top_srcdir)/src/extra/blas/blas.f
66
blas.o: $(top_srcdir)/src/extra/blas/blas.f
56
	$(FC) $(ALL_FFLAGS) -c $< -o $@
67
	$(FC) $(ALL_FFLAGS) -c $< -o $@
57
cmplxblas.o: $(top_srcdir)/src/extra/blas/cmplxblas.f
68
cmplxblas.o: $(top_srcdir)/src/extra/blas/cmplxblas.f
58
	$(FC) $(ALL_FFLAGS) -c $< -o $@
69
	$(FC) $(ALL_FFLAGS) -c $< -o $@