blob: 5dd6e1c3dc6ff69b9092ce1d0ad1e3ea0d42c8f6 [file] [log] [blame]
Eric Andersenb09c6b51999-10-06 05:21:54 +00001#!/bin/sh
Erik Andersen6273f652000-03-17 01:12:41 +00002
3# I added in the extra "ls" so only source files that
4# actually exist will show up in the compile list.
5ls -1 ` \
Erik Andersene9fee652000-04-06 00:10:39 +00006 gcc -E -dM busybox.def.h | \
Erik Andersen6273f652000-03-17 01:12:41 +00007 sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \
8 | tr [:upper:] [:lower:] | sort
9` 2>/dev/null | sed -e 's/\.c$/\.o/g'
10