4 # Define all object files.
6 ARM_OBJ = $(SRC_FILES:.c=.o)
11 $(ARM_OBJ) : %.o : %.c Makefile .depend
12 $(CC) -c $(CFLAGS) $< -o $@
13 $(AR) r $(COMMON)/common.a $@
16 # The .depend files contains the list of header files that the
17 # various source files depend on. By doing this, we'll only
18 # rebuild the .o's that are affected by header files changing.
21 $(CC) $(CFLAGS) -M $(SRC_FILES) > .depend
23 ifeq (.depend,$(wildcard .depend))