mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-19 12:32:40 +01:00
Fix Makefile
This commit is contained in:
parent
bccdd8224c
commit
a65d4b3648
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user