You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 947 B

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