Compiling and Running Fortran

Discussion in 'Mac Programming' started by ScKaSx, Feb 27, 2006.

  1. macrumors regular

    Joined:
    Feb 27, 2006
    #1
    Hi All,

    Here's a make file I'm trying to run:

    CC = g++
    FF = g77
    CLIB = -lm
    LIBS =-L/usr/lib/lg2c
    CFLAGS = -O2 -I$(HOME)/include
    FFLAGS =
    OBJS = fit1.o lmdif.o
    main: $(OBJS)
    $(CC) $(CFLAGS) $(OBJS) $(LIBS) $(CLIB) -o run
    lmdif.o: lmdif.f
    $(FF) $(FFLAGS) -c lmdif.f
    fit1.o: fit1.cc
    $(CC) $(CFLAGS) -c fit1.cc

    Does anyone know how I can make this run on my mac? I know I will need a fortran compiler (where do I get one and how do I install it)? Thanks a bunch

    Cheers
     
  2. Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #2

Share This Page