[ef4b24]: oct / Makefile_unix  Maximize  Restore  History

Download this file

29 lines (21 with data), 631 Bytes

# Use GNU Make to process this file.

OCTSCC   = $(shell ls comp_*.cc)
OCTSBASE = $(basename $(OCTSCC))
OCTS     = $(addsuffix .oct,$(OCTSBASE))

MKOCTFILE ?= mkoctfile

ifndef LAPACK_LIBS
LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS)
endif
ifndef BLAS_LIBS
BLAS_LIBS := $(shell $(MKOCTFILE) -p BLAS_LIBS)
endif
ifndef FLIBS
FLIBS := $(shell $(MKOCTFILE) -p FLIBS)
endif
LFLAGS := $(shell $(MKOCTFILE) -p LFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

all:	$(OCTS)

%.oct: %.cc config.h
	$(MKOCTFILE) -Wall -I../thirdparty -I. -I../src -I../src/thirdparty -L../lib -lltfat -lltfatf $<

clean:
	rm *.o *.oct

.PHONY: all clean