Skip to content

Commit 8c742e1

Browse files
committed
Use a list of sources
1 parent 5175ffa commit 8c742e1

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

src/Makefile.manual

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
SRC = stdlib_experimental_ascii.f90 \
2+
stdlib_experimental_error.f90 \
3+
stdlib_experimental_io.f90 \
4+
f18estop.f90
5+
16
LIB = libstdlib.a
27

3-
OBJS = stdlib_experimental_ascii.o \
4-
stdlib_experimental_error.o \
5-
stdlib_experimental_io.o \
6-
f18estop.o
78

9+
10+
OBJS = $(SRC:.f90=.o)
811
MODS = $(OBJS:.o=.mod)
912

1013
.PHONY: all clean

src/tests/loadtxt/Makefile.manual

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1+
PROGS_SRC = test_loadtxt.f90 \
2+
test_savetxt.f90 \
3+
test_loadtxt_qp.f90 \
4+
test_savetxt_qp.f90
5+
16
CPPFLAGS = -I../..
27
LDFLAGS = -L../.. -lstdlib
38

4-
.PHONY: all clean test
59

6-
PROGS = test_loadtxt test_savetxt test_loadtxt_qp test_savetxt_qp
7-
OBJS = $(PROGS:=.o)
10+
OBJS = $(PROGS_SRC:.f90=.o)
11+
PROGS = $(OBJS:.o=)
12+
813

914

15+
.PHONY: all clean test
16+
1017
all: $(PROGS)
1118

1219
$(PROGS): %: %.o

0 commit comments

Comments
 (0)