[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19991020: gcc and GEMPAK on x86



>From: address@hidden
>Organization: .
>Keywords: 199910262348.RAA01276

>Steve,
>
>Thanks for the info.  I would rather build it using gcc
>and f2c (as opposed to a binary) just so I can incorporate
>the fixes easily, and I am just a little curious as to
>how the builds (McIDAS and GEMPAK) will go on my old
>home machine (PPro 180).  I am trying to get to the point
>where I can do just about anything from home, so I can
>take some time off with the family when I am not traveling.
>Thanks for the help.
>
>Robert
>
>

Robert,

Below is a copy of our Makeinc.x86 for gcc/f2c which you can use instead
of the default which assumes cc and f77 from Sun. You will need the perl fort77
wrapper for f2c as the FC compiler.

Steve Chiswell



###################################################################
###################################################################
#
#       Makefile for Nawips 5.4
#               Top level
#               COMET 7/95 D.Himes
#               Original: Unidata 7/94 P.Bruehl
#
####################################################################
####################################################################
####################################################################
#
# NOTE:  This file is included by the
#             $(NAWIPS)/config/Makeinc.common
#
#################################################################
#
# This file is included by the $(NAWIPS)/config/Makeinc.common
# file (which is directly included by all the Nprogram makefiles
# and indirectly by the Gempak makefiles.
#
# It defines the paths and filenames needed to compile and install
# Nawips.
#
# Please configure the settings below to match the configuration
# of your system.
#
#################################################################
#
##-------------------------------------------------------------
#
#
MFLAGS =

PLATFORM = LINUX
OPSYS    = LINUX
OS       = LINUX


#
##  Fortran and C compiler
#
CC = gcc 
FC = fort77

#
##  Misc. utilities
#       
INSTALL = cp
RANLIB = ranlib

#
## C Options include: -O optimization; -p profiling; -g debugging
#
#
COPT =  -DUNDERSCORE -D$(OS) -DULTRIX 
FOPT =  
LDFLAGS = 


#
## System libraries needed
#
SYSLIBS =

#
## Location of MOTIF library and include files 
#
MOTIFLIBS = -L/usr/dt/lib -lXm
MOTIFINC = -I/usr/dt/include

#
## Location of X11 library and include files  
#
X11LIBS    = -lXt -lX11  -lSM -lICE
XWLIBDIR   = -L/usr/openwin/lib

X11INC     = -I/usr/openwin/include
XWINCDIR   = $(X11INC)

XPMINCLUDE  = -I$(NAWIPS)/xpm/include
XPMLIB      = -L$(NAWIPS)/xpm/lib/x86 -lXpm

##-------------------------------------------------------------
##
##  Define compile,link,archive, & remove variables 
##  (leave as is)
##
#
CFLAGS    = $(COPT) 
FFLAGS    = $(FOPT) 
COMPILE.f = $(FC) $(FFLAGS)  -c 
LINK.f    = $(FC) $(FFLAGS) $(LDFLAGS)
COMPILE.c = $(CC) $(CFLAGS)  -c
LINK.c    = $(CC) $(LDFLAGS) 
CSYSLIB   = -lf2c -lm
NOFORMAIN = 
BRIDGE_DEF= -DGEMPAK -D__STDC__
GPLT_NC = $(GEMOLB)/ginitp_alt.o $(GEMOLB)/gendp_alt.o  
NLIB = $(LIBDIR)/nlib.a