2005-02-08 15:13:27 +00:00
|
|
|
# -*- Makefile -*-
|
|
|
|
|
2004-09-22 08:58:50 +00:00
|
|
|
$(OBJDIR)/%.o: %.c
|
|
|
|
@mkdir -p `dirname $@`
|
|
|
|
@echo "CC $<"
|
2005-02-24 07:34:38 +00:00
|
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|
2004-09-22 08:58:50 +00:00
|
|
|
|
|
|
|
$(OBJDIR)/%.o: %.S
|
|
|
|
@mkdir -p `dirname $@`
|
|
|
|
@echo "CC $<"
|
|
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2004-09-22 21:39:41 +00:00
|
|
|
# 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
|
2004-09-22 08:58:50 +00:00
|
|
|
$(DEPFILE): $(SOURCES)
|
|
|
|
@rm -f $(DEPFILE)
|
2004-10-08 09:20:21 +00:00
|
|
|
@(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; \
|
2004-09-22 21:39:41 +00:00
|
|
|
done; \
|
|
|
|
echo "oo" >/dev/null )
|
2004-09-22 08:58:50 +00:00
|
|
|
|
|
|
|
tags:
|
|
|
|
@(for d in $(DIRS); do \
|
|
|
|
etags -o $(OBJDIR)/TAGS -a $$d/*.[ch]; \
|
|
|
|
done)
|