rockbox/tools/make.inc
Daniel Stenberg fc1e925c16 Rearranged makefiles again to move platform-specific stuff from the Makefiles
to either the configure script or to be ifdefed in the sources.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5103 a1c6a512-1295-4272-9138-f99709370657
2004-09-22 08:58:50 +00:00

21 lines
474 B
PHP

$(OBJDIR)/%.o: %.c
@mkdir -p `dirname $@`
@echo "CC $<"
@$(CC) $(CFLAGS) -c $< -o $@
$(OBJDIR)/%.o: %.S
@mkdir -p `dirname $@`
@echo "CC $<"
@$(CC) $(CFLAGS) -c $< -o $@
$(DEPFILE): $(SOURCES)
@rm -f $(DEPFILE)
@(for each in $(SOURCES); do \
obj=`echo $$each | sed -e 's/\.c/.o/'`; \
$(CC) -MM -MT "$(OBJDIR)/$$obj.o" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \
done )
tags:
@(for d in $(DIRS); do \
etags -o $(OBJDIR)/TAGS -a $$d/*.[ch]; \
done)