blob: 6c91e539b34ad2e66c9261a2bc7e0e24825afaa5 [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;' \
Eric Andersen1b355eb2000-09-05 17:37:48 +00006 | tr '[:upper:]' '[:lower:]' | 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