blob: 547aca4774f8d1b1174cc587b890c7ff2dc4a4b4 [file] [log] [blame]
Eric Andersenb09c6b51999-10-06 05:21:54 +00001#!/bin/sh
Erik Andersen6273f652000-03-17 01:12:41 +00002
Eric Andersene2f6e122000-12-01 19:55:04 +00003RAW=` \
4 gcc -E -dM ${1:-Config.h} | \
Erik Andersen6273f652000-03-17 01:12:41 +00005 sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \
Matt Kraaie9e182e2000-12-26 16:36:10 +00006 | tr A-Z a-z | sort
Eric Andersene2f6e122000-12-01 19:55:04 +00007`
Eric Andersena2d61e72000-12-12 16:55:56 +00008test "${RAW}" != "" || exit
Eric Andersene2f6e122000-12-01 19:55:04 +00009cd ${2:-.}
10# I added in the extra "ls" so only source files that
11# actually exist will show up in the compile list.
12ls -1 $RAW 2>/dev/null | sed -e 's/\.c$/\.o/g'
Erik Andersen6273f652000-03-17 01:12:41 +000013