File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -3,30 +3,31 @@ PROGS_SRC = test_loadtxt.f90 \
3
3
test_loadtxt_qp.f90 \
4
4
test_savetxt_qp.f90
5
5
6
+ CLEAN_FILES = tmp.dat tmp_qp.dat
7
+
6
8
CPPFLAGS = -I../..
7
9
LDFLAGS = -L../.. -lstdlib
8
10
9
11
12
+
10
13
OBJS = $(PROGS_SRC:.f90=.o)
11
14
PROGS = $(OBJS:.o=)
12
15
TESTPROGS = $(PROGS:=TEST)
13
16
14
-
15
-
16
17
.PHONY: all clean test $(TESTPROGS)
17
18
18
19
all: $(PROGS)
19
20
20
- $(PROGS): %: %.o
21
- $(FC) $(FFLAGS) $(CPPFLAGS) -o $@ $^ $(LDFLAGS)
22
-
23
21
test: $(TESTPROGS)
24
22
25
23
$(TESTPROGS):
26
24
./$(@:TEST=)
27
25
28
26
clean:
29
- $(RM) $(PROGS) $(OBJS) tmp.dat tmp_qp.dat
27
+ $(RM) $(PROGS) $(OBJS) $(CLEAN_FILES)
30
28
31
29
%.o: %.f90
32
30
$(FC) $(FFLAGS) $(CPPFLAGS) -c $<
31
+
32
+ $(PROGS): %: %.o
33
+ $(FC) $(FFLAGS) $(CPPFLAGS) -o $@ $^ $(LDFLAGS)
You can’t perform that action at this time.
0 commit comments