LuaJIT FFI to Fortran iso_c_binding example
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 198B

12345678910111213141516
  1. FC = gfortran
  2. LUAJIT = luajit
  3. test: test.lua verlet.so
  4. $(LUAJIT) $<
  5. %.so: %.o
  6. $(FC) -fPIC -shared -o $@ $<
  7. %.o: %.f90
  8. $(FC) -fPIC -c -o $@ -c $<
  9. clean:
  10. rm -f *.so *.o *.mod
  11. .PRECIOUS: %.so