2004-09-22 08:58:50 +00:00
|
|
|
$(OBJDIR)/%.o: %.c
|
|
|
|
@mkdir -p `dirname $@`
|
|
|
|
@echo "CC $<"
|
|
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
$(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)
|
|
|
|
@(for each in $(SOURCES); do \
|
2004-10-05 07:50:33 +00:00
|
|
|
obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \
|
|
|
|
$(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \
|
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)
|