Skip to content
Snippets Groups Projects
Makefile.p690 1.4 KiB
Newer Older
  • Learn to ignore specific revisions
  • Douglas Guptill's avatar
    Douglas Guptill committed
    # Define our compilers
    #
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    F90    = mpxlf90_r
    F77    = mpxlf_r
    CC     =  mpcc_r
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    # Define compiler flags
    #
    # I would like to add -u here, but Wow!  Just try it.
    FFLAGS  = -O3 -qstrict -Q -qarch=auto -qtune=auto \
    -qfloat=nomaf:nofold 
    #*****check these*******
    CFLAGS  = -O3 -qstrict -Q -qarch=auto -qtune=auto \
    -qfloat=nomaf:nofold 
    
    # Define other things
    #
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # PGPLOT = /work/cedrict/Douar/PGI/PGPLOT 
    X11    = /usr/lpp/X11
    WSMP   = /home/beaumnt1/wsmp/lib/Power4
    
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # libs removed on p690...
    # -L$(PGPLOT) -lpgplot \
    # -lacml
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    LIBS = \
    -LOCTREE -lOctree \
    -LNN -lnn \
    -LCASCADE -lcascade \
    -LRESAMPLE -lresample \
    -L$(X11) -lX11 \
    -L$(WSMP) -lpwsmp64 \
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    -lpthread 
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    # INCLUDE = -I$(MUMPS)/include
    
    OPTIONS = 
    
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # compile rules
    #
    COMPILE_OUT=$(NAME).compile
    .SUFFIXES:
    .SUFFIXES: .o .c .f .f90
    .f90.o:
    	@echo "--"                                               >>$(COMPILE_OUT) 2>&1
    	@echo "$(F90) -qsuffix=f=f90 $(FFLAGS) $(INCLUDE) -c $<" >>$(COMPILE_OUT) 2>&1
    	$(F90) -qsuffix=f=f90 $(FFLAGS) $(INCLUDE) -c $<  >>$(COMPILE_OUT) 2>&1
    
    .f.o:
    	@echo "--"                                   >>$(COMPILE_OUT) 2>&1
    	@echo "$(F77) -qsuffix=f=f $(FFLAGS) -c $<"  >>$(COMPILE_OUT) 2>&1
    	$(F77) -qsuffix=f=f $(FFLAGS) -c $<         >>$(COMPILE_OUT) 2>&1
    
    .c.o:
    	@echo "--"                                               >>$(COMPILE_OUT) 2>&1
    	@echo "$(CC) $(CFLAGS) -c $<"  >>$(COMPILE_OUT) 2>&1
    	$(CC) $(CFLAGS) -c $<         >>$(COMPILE_OUT) 2>&1