Former-commit-id:9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f] Former-commit-id:06a8b51d6d
63 lines
1.6 KiB
Text
63 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 -g
|
|
FC = g77 -g
|
|
|
|
|
|
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) -ldiaglib -lgemlib \
|
|
-lprmcnvlib -lsflib -lsnlib -lnxmlib -lgemlib -lgplt \
|
|
-lgridlib -ldevice -lxwp -lxw -lps -lgn -lcgemlib \
|
|
-lgplt -lgemlib -lm -lnetcdf $(XLIBS) -lz
|
|
|
|
|
|
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
|