2005-03-06 15:07:38 +00:00
|
|
|
# -*- 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.
|
2007-05-19 17:28:52 +00:00
|
|
|
#
|
|
|
|
# The usage of ls is only to make sure that we only output existing file names
|
|
|
|
# to not confuse make and to produce a fairly decent error message to the
|
|
|
|
# terminal.
|
2005-03-06 15:07:38 +00:00
|
|
|
|
2005-03-10 08:19:54 +00:00
|
|
|
SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
|
2005-03-06 15:07:38 +00:00
|
|
|
$(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - | \
|
2007-05-19 17:28:52 +00:00
|
|
|
grep -v "^\#" | xargs ls)
|