File tree Expand file tree Collapse file tree 5 files changed +53
-19
lines changed Expand file tree Collapse file tree 5 files changed +53
-19
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ FCFLAGS=-O0
8
8
all: stdlib tests
9
9
10
10
stdlib:
11
- $(MAKE) -f Makefile.manual FC=${FC} FCFLAGS=${FCFLAGS} --directory=src/lib
11
+ $(MAKE) -f Makefile.manual FC=${FC} FCFLAGS=${FCFLAGS} --directory=src
12
12
13
13
tests: stdlib
14
14
$(MAKE) -f Makefile.manual FC=${FC} FCFLAGS=${FCFLAGS} --directory=src/tests
15
15
16
16
clean:
17
- $(MAKE) -f Makefile.manual clean --directory=src/lib
17
+ $(MAKE) -f Makefile.manual clean --directory=src
18
18
$(MAKE) -f Makefile.manual clean --directory=src/tests
Original file line number Diff line number Diff line change 1
- # Fortran stdlib Makefile
2
-
3
- OBJS = mod_stdlib.o
1
+ OBJS = stdlib_experimental_ascii.o \
2
+ stdlib_experimental_error.o \
3
+ stdlib_experimental_io.o \
4
4
5
5
.PHONY: all clean
6
6
.SUFFIXES: .f90 .o
7
7
8
- all: mod_stdlib.o
8
+ all: $(OBJS)
9
9
10
10
.f90.o:
11
11
$(FC) $(FCFLAGS) -c $<
12
12
13
13
%.o: %.mod
14
14
15
- mod_stdlib.o: mod_stdlib.f90
15
+ stdlib_experimental_ascii.o: stdlib_experimental_ascii.f90
16
+ stdlib_experimental_error.o: stdlib_experimental_error.f90
17
+ stdlib_experimental_io.o: stdlib_experimental_io.f90
16
18
17
19
clean:
18
20
$(RM) *.o *.mod
Original file line number Diff line number Diff line change 1
- # Fortran stdlib Makefile
2
-
3
- CPPFLAGS=-I../lib
4
- OBJS = ../lib/mod_stdlib.o
5
-
6
1
.PHONY: all clean
7
- .SUFFIXES: .f90 .o
8
2
9
- all: test_dummy
3
+ all: ascii/test_ascii loadtxt/test_loadtxt
10
4
11
- test_dummy: test_dummy.f90 $(OBJS)
12
- $(FC) $(FCFLAGS) $(CPPFLAGS) $< -o $@ $(OBJS)
5
+ ascii/test_ascii:
6
+ $(MAKE) -f Makefile.manual --directory=ascii
13
7
14
- %.o: %.mod
8
+ loadtxt/test_loadtxt:
9
+ $(MAKE) -f Makefile.manual --directory=loadtxt
15
10
16
11
clean:
17
- $(RM) test_dummy
18
- $(RM) *.o *.mod
12
+ $(MAKE) -f Makefile.manual --directory=ascii clean
13
+ $(MAKE) -f Makefile.manual --directory=loadtxt clean
Original file line number Diff line number Diff line change
1
+ CPPFLAGS = -I../..
2
+ OBJS = ../../stdlib_experimental_ascii.o \
3
+ ../../stdlib_experimental_error.o
4
+
5
+ .PHONY: all clean
6
+ .SUFFIXES: .f90 .o
7
+
8
+ all: test_ascii
9
+
10
+ test_ascii: test_ascii.f90 $(OBJS)
11
+ $(FC) $(FCFLAGS) $(CPPFLAGS) $< -o $@ $(OBJS)
12
+
13
+ %.o: %.mod
14
+
15
+ clean:
16
+ $(RM) test_ascii
17
+ $(RM) *.o *.mod
Original file line number Diff line number Diff line change
1
+ CPPFLAGS = -I../..
2
+ OBJS = ../../stdlib_experimental_error.o \
3
+ ../../stdlib_experimental_io.o
4
+
5
+ .PHONY: all clean
6
+ .SUFFIXES: .f90 .o
7
+
8
+ all: test_loadtxt test_savetxt
9
+
10
+ test_loadtxt: test_loadtxt.f90 $(OBJS)
11
+ $(FC) $(FCFLAGS) $(CPPFLAGS) $< -o $@ $(OBJS)
12
+
13
+ test_savetxt: test_savetxt.f90 $(OBJS)
14
+ $(FC) $(FCFLAGS) $(CPPFLAGS) $< -o $@ $(OBJS)
15
+
16
+ %.o: %.mod
17
+
18
+ clean:
19
+ $(RM) test_loadtxt test_savetxt
20
+ $(RM) *.o *.mod
You can’t perform that action at this time.
0 commit comments