diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-03-06 15:07:38 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-03-06 15:07:38 +0000 |
| commit | e566eede94eb673813bcc017207504a7c48893ad (patch) | |
| tree | dcb2be724e376446965d1bd2d333cd609501c4c9 | |
| parent | 0231c616992c331a0bd0556ed5ce46fb09854c74 (diff) | |
| download | rockbox-e566eede94eb673813bcc017207504a7c48893ad.zip rockbox-e566eede94eb673813bcc017207504a7c48893ad.tar.gz rockbox-e566eede94eb673813bcc017207504a7c48893ad.tar.bz2 rockbox-e566eede94eb673813bcc017207504a7c48893ad.tar.xz | |
generic SRC builder thing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6151 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | tools/makesrc.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/makesrc.inc b/tools/makesrc.inc new file mode 100644 index 0000000..1499dad --- /dev/null +++ b/tools/makesrc.inc @@ -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 "^\#") |