CC          = @CC@
AR          = @AR@
LIBNAME     = @LIBNAME@
srcdir      = @srcdir@

INCLUDE_DIR = -I@MPI_INCLUDE_DIR@  -I${srcdir}/../include -I../include -I../../include  -I${srcdir}/../../../../include -I../../../../include 
CFLAGS      = @CPPFLAGS@ @CFLAGS@ $(INCLUDE_DIR)

@VPATH@

AD_PFS_OBJECTS = ad_pfs_read.o \
      ad_pfs_open.o ad_pfs_write.o ad_pfs_done.o \
      ad_pfs_fcntl.o ad_pfs_iread.o ad_pfs_iwrite.o ad_pfs_wait.o \
      ad_pfs_flush.o ad_pfs_hints.o \
      ad_pfs.o


default: $(LIBNAME)

.c.o:
	$(CC) $(CFLAGS) -c $<

$(LIBNAME): $(AD_PFS_OBJECTS)
	$(AR) $(LIBNAME) $(AD_PFS_OBJECTS)

clean:
	@rm -f *.o
