diff --git a/c_api/makefile b/c_api/makefile deleted file mode 100644 index 6b69a946..00000000 --- a/c_api/makefile +++ /dev/null @@ -1,10 +0,0 @@ -INC=-I../wgrib2 -I. - -all: grb2_mk_inv.o grb2_cmd.o grb2_inq.o - -.c.o: - $(CC) ${CPPFLAGS} ${CFLAGS} ${INC} -c $< - -clean: - touch junk.o; rm *.o - diff --git a/docs/README.makefile.upto.v3.0.0 b/docs/README.makefile.upto.v3.0.0 deleted file mode 100644 index 319f4398..00000000 --- a/docs/README.makefile.upto.v3.0.0 +++ /dev/null @@ -1,26 +0,0 @@ - makefiles for wgrib2 upto v3.0.0 - gnu make v3 vs v4 - - -Gnu make is needed for wgrib2's makefile. Gnu make v4 (ex. v4.2 -and v4.3) is incompatible with the gnu make v3 by the way they -treat the # character. - - foo := $(shell echo '\#abc') - old gnu make: will print #abc - new gnu make: will print \#abc - - fix introduced with v3.0.1 (staight from the gnu make release notes) - - H:=\# - foo := $(shell echo '$Habc') - old gnu make: will print #abc - new gnu make: will print #abc - -If want to compile an old version of wgrib2 on a system that -has gnu make v4, you can do one of the following, - - a) build wgrib2 with gnu make v3.x - b) edit grib2/makefile, replace /# by #. - c) follow the fix using H:=\# (see above) - makes the makefile compatible with gnu make v3 and v4. diff --git a/ftn_api/makefile b/ftn_api/makefile deleted file mode 100644 index a1e5bafc..00000000 --- a/ftn_api/makefile +++ /dev/null @@ -1,25 +0,0 @@ -# -# v1.1 7.2020 WNE: support make -j N makefile, simplify clean -# - -ARFLAGS=-ruv - -all: wgrib2lowapi.o wgrib2api.o fort_wgrib2.o libwgrib2_api.a - -.c.o: - $(CC) ${CPPFLAGS} ${CFLAGS} -c $< - -wgrib2api.o: wgrib2lowapi.mod wgrib2api.f90 - $(FC) ${FFLAGS} -c wgrib2api.f90 - -wgrib2lowapi.o: wgrib2lowapi.f90 - $(FC) ${FFLAGS} -c wgrib2lowapi.f90 - -wgrib2lowapi.mod: wgrib2lowapi.f90 wgrib2lowapi.o - $(FC) ${FFLAGS} -c wgrib2lowapi.f90 - -libwgrib2_api.a: wgrib2lowapi.o wgrib2api.o fort_wgrib2.o - ar ${ARFLAGS} libwgrib2_api.a *.o - -clean: - touch junk.o junk.mod junk.a ; rm *.o *.mod *.a diff --git a/wgrib2/gctpc/source/makefile.gctpc b/wgrib2/gctpc/source/makefile.gctpc deleted file mode 100644 index a2ccadf6..00000000 --- a/wgrib2/gctpc/source/makefile.gctpc +++ /dev/null @@ -1,31 +0,0 @@ -SHELL=/bin/sh - -# -# makefile for gctpc, invoked by makefile for wgrib2 -# does not compile fortran bridge routine -# - -LIB=libgeo.a -ARFLAGS=-ruv - - -objs=gctp.o alberfor.o alberinv.o alconfor.o alconinv.o azimfor.o aziminv.o eqconfor.o eqconinv.o \ - equifor.o equiinv.o for_init.o gnomfor.o gnominv.o goodfor.o goodinv.o gvnspfor.o gvnspinv.o \ - hamfor.o haminv.o imolwfor.o imolwinv.o inv_init.o lamazfor.o lamazinv.o lamccfor.o lamccinv.o \ - merfor.o merinv.o millfor.o millinv.o molwfor.o molwinv.o obleqfor.o obleqinv.o omerfor.o omerinv.o \ - orthfor.o orthinv.o paksz.o polyinv.o polyfor.o psinv.o psfor.o robinv.o robfor.o sininv.o sinfor.o \ - sominv.o somfor.o sphdz.o sterinv.o sterfor.o stplninv.o stplnfor.o tminv.o tmfor.o utminv.o utmfor.o \ - untfz.o vandginv.o vandgfor.o wivinv.o wivfor.o wviiinv.o wviifor.o cproj.o report.o - - -.c.o: - $(CC) -c $(CPPFLAGS) $(CFLAGS) ${DEFS} -Iinclude $< - -$(LIB): $(objs) - ar $(ARFLAGS) ${LIB} $(objs) - -clean: - touch junk.o - rm *.o - touch libgeo.a - rm libgeo.a diff --git a/wgrib2/makefile b/wgrib2/makefile deleted file mode 100644 index ada1c7e2..00000000 --- a/wgrib2/makefile +++ /dev/null @@ -1,64 +0,0 @@ -# -# this makefile is for gnu-make on a linux box -# -# REQUIRES GNU make -# mod 1/07 M. Schwarb -# mod 2/07 W. Ebisuzaki changes for *.dat files -# mod 8/07 W. Ebisuzaki cleanup -# mod 4/09 W. Ebisuzaki config.h, netcdf4 -# mod 3/12 W. Ebisuzake openmp, gctpc - -SHELL=/bin/sh - - -all:=$(patsubst %.c,%.o,$(wildcard *.c)) -code:=$(filter-out fnlist.o,$(all)) -gribtables=$(wildcard gribtables/*/*gribtable.dat) -o=$(wildcard *.o) -h:=grb2.h wgrib2.h config.h -options=$(wildcard [A-Z]*.c) -CODE_TABLE_DAT=$(wildcard CodeTable_[0-9].[0-9]*.dat) -FLAGS:=${CPPFLAGS} ${CFLAGS} -ARFLAGS=-ruv - -wgrib2: $h fnlist.c fnlist.h ${all} - ${CC} -o wgrib2 ${FLAGS} ${all} ${LDFLAGS} - rm Config.o - -fast: ${code} - touch fnlist.o fnlist.c - ${CC} -o wgrib2 ${FLAGS} ${all} ${LDFLAGS} - rm Config.o - -lib: $h fnlist.c fnlist.h ${all} - touch libwgrib2.a ; rm libwgrib2.a - ${CC} -c ${FLAGS} -DCALLABLE_WGRIB2 wgrib2.c - ${CC} -c ${FLAGS} -DCALLABLE_WGRIB2 fatal_error.c - ${CC} -c ${FLAGS} -DCALLABLE_WGRIB2 wgrib2_api.c - ar ${ARFLAGS} libwgrib2.a *.o - rm wgrib2.o fatal_error.o wgrib2_api.o - -fnlist.c fnlist.h: ${options} - ./function.sh - -Help.o: Help.c wgrib2.h - ${CC} -c ${FLAGS} Help.c - -CodeTable.o: CodeTable.c ${CODE_TABLE_DAT} - ${CC} -c ${FLAGS} CodeTable.c - -cname.o: cname.c gribtab.c - ${CC} -c ${FLAGS} cname.c - -Sec1.o: Sec1.c code_table0.dat ncep_tableC.dat - ${CC} -c ${FLAGS} Sec1.c - -gribtab.o: gribtab.c ${gribtables} - ${CC} -c ${FLAGS} gribtab.c - -.c.o: $(*).c $h fnlist.c - $(CC) -c ${FLAGS} $*.c - -clean: - touch wgrib2 - rm ${o} wgrib2