#! /bin/sh

# Of all the available platform-dependent object file sets defined in the 
# working directory's make file of the form 'OBJS_...', list all those that
# could be relevant to the current platform.

keywords=$(uname -a)

sets=""
for k in $keywords
do
	sets="$sets\n$(echo "$k" | tr '[:lower:]' '[:upper:]' | xargs -I '%' grep '^OBJS_%[ =]' Makefile)"
	
done

echo "$sets" | sort | uniq | awk '/\n\n/ { print '\n' }'