1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2025-01-03 10:06:09 +01:00

Merge pull request #3 from TREX-CoE/fix-makefile

Fix Makefile
This commit is contained in:
Anthony Scemama 2020-10-15 10:46:00 +02:00 committed by GitHub
commit c5e3521111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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