1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-12-22 12:23:56 +01:00

Fix Makefile

This commit is contained in:
Pablo Oliveira 2020-10-15 09:41:26 +02:00
parent bccdd8224c
commit a65d4b3648

View File

@ -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