1 SRC_FILES=croutine.c list.c queue.c tasks.c
6 # Define all object files.
8 ARM_OBJ = $(SRC_FILES:.c=.o)
12 @for i in $(SUBDIRS); do \
13 (cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS) all); done
15 $(ARM_OBJ) : %.o : %.c Makefile .depend
16 $(CC) -c $(CFLAGS) $< -o $@
17 $(AR) r $(COMMON)/common.a $@
20 # The .depend files contains the list of header files that the
21 # various source files depend on. By doing this, we'll only
22 # rebuild the .o's that are affected by header files changing.
25 $(CC) $(CFLAGS) -M $(SRC_FILES) > .depend
27 ifeq (.depend,$(wildcard .depend))