Debian Codegraph @

LAPACKE/example/Makefile

raw symbols SCIP
1 TOPSRCDIR = ../..
2 include $(TOPSRCDIR)/make.inc
3
4 .SUFFIXES: .c .o
5 .c.o:
6 $(CC) $(CFLAGS) -I. -I../include -c -o $@ $<
7
8 .PHONY: all
9 all: xexample_DGESV_rowmajor \
10 xexample_DGESV_colmajor \
11 xexample_DGELS_rowmajor \
12 xexample_DGELS_colmajor
13
14 LIBRARIES = $(LAPACKELIB) $(LAPACKLIB) $(BLASLIB)
15
16 # Double Precision Examples
17 xexample_DGESV_rowmajor: example_DGESV_rowmajor.o lapacke_example_aux.o $(LIBRARIES)
18 $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
19 ./$@
20
21 xexample_DGESV_colmajor: example_DGESV_colmajor.o lapacke_example_aux.o $(LIBRARIES)
22 $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
23 ./$@
24
25 xexample_DGELS_rowmajor: example_DGELS_rowmajor.o lapacke_example_aux.o $(LIBRARIES)
26 $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
27 ./$@
28
29 xexample_DGELS_colmajor: example_DGELS_colmajor.o lapacke_example_aux.o $(LIBRARIES)
30 $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
31 ./$@
32
33 .PHONY: clean cleanobj cleanexe
34 clean: cleanobj cleanexe
35 cleanobj:
36 rm -f *.o
37 cleanexe:
38 rm -f x*