summaryrefslogtreecommitdiff
path: root/apps/codecs/liba52/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/liba52/Makefile')
-rw-r--r--apps/codecs/liba52/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/codecs/liba52/Makefile b/apps/codecs/liba52/Makefile
index ee13ca1..7baa71f 100644
--- a/apps/codecs/liba52/Makefile
+++ b/apps/codecs/liba52/Makefile
@@ -17,7 +17,9 @@ endif
A52OPTS =
CFLAGS = $(GCCOPTS) $(A52OPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE}
-SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - )
+# This sets up 'SRC' based on the files mentioned in SOURCES
+include $(TOOLSDIR)/makesrc.inc
+
SOURCES = $(SRC)
OBJS2 := $(SRC:%.c=$(OBJDIR)/%.o)
OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))