generic SRC builder thing

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6151 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2005-03-06 15:07:38 +00:00
parent 0231c61699
commit e566eede94

14
tools/makesrc.inc Normal file
View file

@ -0,0 +1,14 @@
# -*- Makefile -*-
# return the list of sources to build in the SRC variable
# This uses the native 'gcc' compiler and not $(CC) since we use the -include
# option and older gcc compiler doesn't have that. We use one such older
# compiler for the win32 cross-compiles on Linux.
#
# The weird grep -v thing in here is due to Apple's stupidities and is needed
# to make this do right when used on Mac OS X.
SRC := $(shell cat SOURCES | gcc -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
$(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - | \
grep -v "^\#")