# planguage installation points
PLANGROOT = $(HOME)/install

# choose the target from
#      mpi, isim
NETINT = mpi

# add application source files here
OBJ	=	pfsort.o


#------------------------------------
# modify below this line on your own.

PSINTTARGET = $(NETINT)
ifeq ($(PSINTTARGET),mpi)
   LIBS	=	-lpfmpi -lpcmpi 
endif
ifeq ($(PSINTTARGET),isim)
   LIBS	=	-lpfnx_i -lpcnx_i -lisim
   PFFLAGS := $(PFFLAGS) -ipsc
endif

PLANG_BUILD_APP = true
PFLIBDIRS  =  -L$(PLANGROOT)/lib
include $(PLANGROOT)/include/makefile.h
#RM = echo
#PFFLAGS := $(PFFLAGS) -T me

#-------------------------------------
# This section is for building applications. 
#-------------------------------------

mybuild:$(OBJ) 
	@echo LINKING $(LDFLAGS)
	$(FC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)


clean:
	$(RM) core *.o *.a *.f *.pf *.c *.trace
 
realclean:
	$(RM) core *.o  *.a *.f *.pf *.c *.trace



