Skip to content

Commit a037f7e

Browse files
committed
Updated makefile
1 parent bbcdc98 commit a037f7e

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

examples/makefile_Unix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# Makefile for generating and running SLICOT Library example #
44
# programs on Unix-like machines. #
55
# #
6-
# SLICOT, Release 5.8 ./slicot/examples/makefile #
6+
# SLICOT, Release 5.9 ./slicot/examples/makefile #
77
# Vasile Sima #
88
# October 31, 1996. #
99
# Revised Dec. 7, 1999, Jan. 8 2009, Sep. 25, 2012, Nov. 30, 2012,#
10-
# July 16, 2015, Feb. 5, 2017, Dec. 28, 2022. #
10+
# July 16, 2015, Feb. 5, 2017, Dec. 28, 2022, Feb. 2024. #
1111
####################################################################
1212
#
1313
# This makefile compiles, links, and runs the example programs for

make_Unix.inc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
####################################################################
22
# SLICOT make include file for Unix-like machines. #
3-
# SLICOT, Release v5.8 slicot/make.inc #
3+
# SLICOT, Release v5.9 slicot/make.inc #
44
# Vasile Sima #
55
# October 31, 1996. #
66
# Revised Dec. 7, 1999; July 16, 2015, Dec. 28, 2022, Feb. 2023. #
7+
# Feb. 2024. #
78
####################################################################
89

910
SHELL = /bin/sh
1011

11-
# Modify the FC and FFLAGS definitions to the desired compiler
12+
# Modify the FORTRAN and OPTS definitions to the desired compiler
1213
# and desired compiler options for your machine. NOOPT refers to
1314
# the compiler options desired when NO OPTIMIZATION is selected.
1415
#
15-
FC = gfortran
16-
FFLAGS = -O2 -fPIC -fdefault-integer-8
17-
FFLAGS_NOOPT = -O0
16+
FORTRAN = gfortran
17+
OPTS = -O2 -fPIC -fdefault-integer-8
18+
OPTS_NOOPT = -O0
1819

1920
# Define LDFLAGS to the desired linker options for your machine.
2021
#
22+
LOADER = $(FORTRAN)
2123
LDFLAGS =
2224

2325
# The archiver and the flag(s) to use when building an archive
2426
# (library). If your system has no ranlib, set RANLIB = echo.
2527
#
2628
ARCH = ar
27-
ARFLAGS = cr
29+
ARCHFLAGS = cr
2830
# ARCHFLAGS= r
2931
# RANLIB = ranlib
3032

makefile_Unix

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
# the auxiliary library file, and linking and running the example #
55
# programs. #
66
# #
7-
# SLICOT, Release 5.8 ./slicot/makefile #
7+
# SLICOT, Release 5.9 ./slicot/makefile #
88
# Vasile Sima #
99
# October 31, 1996 #
1010
# Revised Dec. 7, 1999; Feb. 14, 2005, Dec. 28, 2022, Feb. 2023. #
11+
# Feb. 2024. #
1112
####################################################################
1213
#
1314
# This makefile creates/updates the SLICOT Library object file, the
@@ -43,15 +44,15 @@ all: lib example
4344
clean: cleanlib cleanexample
4445

4546
lib:
46-
( cd src; $(MAKE) )
47-
( cd src_aux; $(MAKE) )
47+
( cd src; $(MAKE) -f makefile_Unix )
48+
( cd src_aux; $(MAKE) -f makefile_Unix )
4849

4950
example:
50-
( cd examples; $(MAKE) )
51+
( cd examples; $(MAKE) -f makefile_Unix )
5152

5253
cleanlib:
53-
( cd src; $(MAKE) clean )
54-
( cd src_aux; $(MAKE) clean )
54+
( cd src; $(MAKE) -f makefile_Unix clean )
55+
( cd src_aux; $(MAKE) -f makefile_Unix clean )
5556

5657
cleanexample:
57-
( cd examples; $(MAKE) clean )
58+
( cd examples; $(MAKE) -f makefile_Unix clean )

src/makefile_Unix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#
2929
#######################################################################
3030

31-
include ../make.inc
31+
include ../make_Unix.inc
3232

3333
SLSRC = \
3434
AB01MD.o AB01ND.o AB01OD.o AB04MD.o AB05MD.o AB05ND.o AB05OD.o \

src_aux/makefile_Unix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# Makefile for creating/updating the auxiliary Library object file#
44
# for SLICOT on Unix platforms. #
55
# #
6-
# SLICOT, Release 5.8 ./slicot/src_aux/makefile #
6+
# SLICOT, Release 5.9 ./slicot/src_aux/makefile #
77
# Vasile Sima #
88
# Jan. 24, 2005. #
9-
# Revised Jan. 9, 2009, Jan. 25, 2010, Jan. 2016, Feb. 2023 #
9+
# Revised Jan. 9, 2009, Jan. 25, 2010, Jan. 2016, Feb. 2023 #
1010
####################################################################
1111
#
1212
# This is the makefile to create/update an auxiliary library lpkaux.lib.

0 commit comments

Comments
 (0)