Compilation of Fortran 90 code that uses PETSc

I have installed PETSc 3.10.2 along with the intel compilers and everything went fine (including tests).

I am now trying to call PETSc from an small existing Fortran code:

program hello

   #include <petsc/finclude/petscvec.h>
   use petscvec
   implicit none
   PetscScalar  xwork(6)
   PetscScalar, pointer ::  xx_v(:),yy_v(:)
   PetscInt i,n,loc(6)
   PetscErrorCode ierr
   Vec     x,y

   print *, "Hello World!"

end program hello

And to compile it (with PETSC_DIR defined and the headers are at the right location):

mpif90 -I${PETSC_DIR}/include -L${PETSC_DIR}/lib -lpetsc test.F90 -o test

The compilation fails, with errors that looks like the module petscvec is never used:

test.F90(11): error #5082: Syntax error, found IDENTIFIER 'XWORK' when expecting one of: => = . [ % ( :
   PetscScalar  xwork(6)
--------------------^
test.F90(12): error #5082: Syntax error, found ',' when expecting one of: => = . [ % ( :
   PetscScalar, pointer ::  xx_v(:),yy_v(:)
------------------^
test.F90(12): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
   PetscScalar, pointer ::  xx_v(:),yy_v(:)
-----------------------------------------------^

I do not want to use the defined makefiles since the goal of all this is to include PETSc in one of an already written code and I would like to understand how to link and compile it.

Do you have any suggestions?