rockbox/tools/make.inc
Daniel Stenberg b8a23f9e49 Fixed makefiles for autoconf.g include.
Fixed build output look in several Makefiles
Fixed code to include autoconf.h
Fixed code to use ROCKBOX_*_ENDIAN instead of previous attempts.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6421 a1c6a512-1295-4272-9138-f99709370657
2005-05-07 22:41:17 +00:00

33 lines
845 B
Makefile

# -*- Makefile -*-
ifndef V
SILENT=@
endif
$(OBJDIR)/%.o: %.c
$(SILENT)mkdir -p `dirname $@`
@echo "CC $<"
$(SILENT)$(CC) $(CFLAGS) -c $< -o $@
$(OBJDIR)/%.o: %.S
$(SILENT)mkdir -p `dirname $@`
@echo "CC $<"
$(SILENT)$(CC) $(CFLAGS) -c $< -o $@
# the lame echo stuff down here is to prevent any compiler errors/warnings
# to cause an error code to get returned and thus stop the build
$(DEPFILE): $(SOURCES)
$(SILENT)mkdir -p `dirname $(DEPFILE)`
$(SILENT)rm -f $(DEPFILE)
$(SILENT)(for each in $(SOURCES) x; do \
if test "x" != "$$each"; then \
obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \
$(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \
fi; \
done; \
echo "oo" >/dev/null )
tags:
$(SILENT)(for d in $(DIRS); do \
etags -o $(OBJDIR)/TAGS -a $$d/*.[ch]; \
done)