I also used ifort to create the meam.a libraray due to the fail of g95. This is maybe due to the link between c and f files. I was succedded in creating the lmp_parallel_poems_meam.
As reference I attached my makefile
SHELL = /bin/sh
#.IGNORE:
# System-specific settings
CC = g++
CCFLAGS = -g -O -I/home/yucj/installs/mpich-1.2.7/include/ \
-I/home/yucj/installs/fftw-2.1.5/include \
-I/home/yucj/Lammps/lammps-4Dec07/lib/poems \
-DFFT_FFTW -DGZIP -DMPICH_IGNORE_CXX_SEEK
DEPFLAGS = -M
LINK = g++
LINKFLAGS = -g -O -L/home/yucj/installs/mpich-1.2.7/lib \
-L/home/yucj/installs/fftw-2.1.5/lib \
-L/home/yucj/intel/fc/9.1.032/lib \
-L/home/yucj/Lammps/lammps-4Dec07/lib/poems \
-L/home/yucj/Lammps/lammps-4Dec07/lib/meam
USRLIB = -lfftw -lmpich -lpoems -lmeam
SYSLIB = -lpthread -lifcore -lsvml -lompstub -limf
ARCHIVE = ar
ARFLAGS = -rc
SIZE = size
Hope helpful.
Chol-Jun