awips2/ncep/gov.noaa.nws.ncep.ui.nsharp/BigNsharp/Makefile.save.20101102
root 9f19e3f712 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

64 lines
1.6 KiB
Text

#
# Makefile for bigsharp.
# Modified for NAWIPS version 5.11.2+, tested with 5.11.4
# Jay Liang, Fri Dec 12 20:56:00 UTC 2008
#
# CC and FC flags can be defined with -g for extra debugging info, however,
# do NOT use -O flag for optimization as it dumps core.
#
PROG = nsharp.exe
DEBUG = 0
CC = gcc
FC = g77
#debug CC = gcc -g -DDEBUG_JL
#debug FC = g77 -g -DDEBUG_JL
FFLAGS = -fno-second-underscore -I$(OS_INC) -I$(GEMINC)
CFLAGS_G = -DUNDERSCORE -DLinux
CFLAGS = $(CFLAGS_G) -I. -I./Sndglib -I$(OS_INC) -I$(GEMINC) \
-I$(NWX) -I$(NSHARP) \
-I/usr/include/X11R6 -I/usr/X11R6/include/Xm
LFLAGS =$(LFLAGS_G) $(LFLAGS_R)
XLIBS = -L/usr/X11R6/lib -lXm -lXt -lX11
LIBS = -L./Sndglib -lsndg \
$(OS_LIB)/ginitp_alt.o $(OS_LIB)/gendp_alt.o \
-L$(OS_LIB) -lsnlist -lsnlib -lsflist -lsflib -lnxmlib -ldiaglib \
-lgemlib -lprmcnvlib -lgridlib -lgplt -lgridlib -lcgemlib \
-ldevice -lxwp -lxw -lps -lgn -lgemlib -lnetcdf \
$(XLIBS) -lz -lm
NOBJS = xinitd.o xwvid1.o xwvid3.o xwvid6.o xwvid2.o \
xwvid5.o decoder.o readdata.o sharp95.o \
get_gem_times.o get_mdl_time.o get_mdl_snd.o get_gem_stns.o \
mapinit.o mapmark.o mapdraw.o mapw.o draw.o \
calwxt.o xvgifwr.o getsfc.o fonts.o getsndg.o config.o \
get_mdl_stns.o globfiles.o textwin.o textsave.o hpgl.o \
parameterization.o nhail1.o sars.o sup_nsharp.o \
snrdatjh.o snmergjh.o mruadtjh.o
SNDGLIB = ./Sndglib/libsndg.a
all:: $(PROG)
$(PROG)::
@echo Compiling and Linking \`$@\`
@$(MAKE) _nsharp
_nsharp:: $(NOBJS) sndglib
$(FC) -o $(PROG) $(NOBJS) $(LIBS)
sndglib:
cd ./Sndglib; $(MAKE)
links:
@-$(GEMPAK)/install/setup_links
clean:
rm -f $(PROG) $(NOBJS)
cd ./Sndglib; $(MAKE) clean