21 lines
440 B
Makefile
21 lines
440 B
Makefile
|
#
|
||
|
# Fortran calls to a C function
|
||
|
#
|
||
|
|
||
|
all: call_the_c
|
||
|
|
||
|
# ----------------------------------------------------------
|
||
|
|
||
|
first-try.o: first-try.c Makefile
|
||
|
gcc -Wall -g -c $<
|
||
|
|
||
|
soundfiles.o: soundfiles.c Makefile
|
||
|
gcc -Wall -g -c $<
|
||
|
|
||
|
# ----------------------------------------------------------
|
||
|
|
||
|
call_the_c: call_the_c.f90 Makefile first-try.o
|
||
|
gfortran -Wall -g $< first-try.o -o $@
|
||
|
|
||
|
# ----------------------------------------------------------
|