makefile_BWD (sub2k/makefile_BWD) — Bill Danforth Linux Build File

Overview

sub2k/makefile_BWD is a Linux-adapted version of sub2k/makefile configured by Bill Danforth (U.S. Geological Survey, Woods Hole) in June 2005 for building the Submetrix 2000 / ISIS processing tools on Linux workstations (CFLAGS = -g -DLINUX -I$(INC_PATH)).


Usage

make -f makefile_BWD

Differences from sub2k/makefile

Setting sub2k/makefile_BWD sub2k/makefile
CFLAGS -g -DLINUX -I$(INC_PATH) (uncommented by default for Linux little-endian x86 builds) Platform CFLAGS lines commented out at top of file, relying on environment CFLAGS
Targets readSUB2K, convSUB16, testWrap, readSWA, openISIS, j_SUB2K.o Identical target set

How It Works

By explicitly enabling -DLINUX in CFLAGS, makefile_BWD ensures that the byte-swapping macros and little-endian struct layouts inside sub2k.h and readSUB2K.c are active during compilation on x86/x86_64 Linux systems, matching the native little-endian byte order of Submetrix Windows/PC .sub and .rrc recordings or swapping into big-endian OMG .merged output files as needed.