diff --git a/src/Makefile b/src/Makefile index cd61181..293255a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,17 +4,20 @@ CFLAGS= FC=gfortran FFLAGS= -SOURCE_FILES=$(wildcard *.org) +ORG_SOURCE_FILES=qmckl_context.org +OBJECT_FILES=$(patsubst %.org,%.o,$(ORG_SOURCE_FILES)) .PHONY: clean +all: $(OBJECT_FILES) + %.c %.h: %.org emacs --quick --no-init-file --batch --eval "(require 'org)" --eval '(org-babel-tangle-file "$^")' %.c %.h %_f.f90: %.org emacs --quick --no-init-file --batch --eval "(require 'org)" --eval '(org-babel-tangle-file "$^")' -%.o: %.c +%.o: %.c $(CC) $(CFLAGS) -c $*.c -o $*.o %.o: %.f90