ed7ab52e27
GNU grep 3.8 warns about "\#" when compiling. The "#" has to be escaped for Makefiles and shell, but it isn't special to grep so grep thinks it's an invalid escape sequence. Change-Id: Ieb2607d42b7daa1939ca0101b915ec0c7afd4298
14 lines
580 B
Makefile
14 lines
580 B
Makefile
# -*- 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 | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
|
|
$(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - 2>/dev/null \
|
|
| grep -v "^#")
|