CBLAS/examples/Makefile
raw| 1 | TOPSRCDIR = ../.. |
| 2 | include $(TOPSRCDIR)/make.inc |
| 3 | |
| 4 | .SUFFIXES: .c .o |
| 5 | .c.o: |
| 6 | $(CC) $(CFLAGS) -I../include -c -o $@ $< |
| 7 | |
| 8 | .PHONY: all |
| 9 | all: cblas_ex1 cblas_ex2 |
| 10 | |
| 11 | cblas_ex1: cblas_example1.o $(CBLASLIB) $(BLASLIB) |
| 12 | $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^ |
| 13 | cblas_ex2: cblas_example2.o $(CBLASLIB) $(BLASLIB) |
| 14 | $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^ |
| 15 | |
| 16 | .PHONY: clean cleanobj cleanexe |
| 17 | clean: cleanobj cleanexe |
| 18 | cleanobj: |
| 19 | rm -f *.o |
| 20 | cleanexe: |
| 21 | rm -f cblas_ex1 cblas_ex2 |