2 ASMSRC_FILES=swidispatch.s
5 # Define all object files.
7 ARM_OBJ = $(SRC_FILES:.c=.o)
8 ARM_ASMOBJ = $(ASMSRC_FILES:.s=.o)
11 all: $(ARM_OBJ) $(ARM_ASMOBJ)
13 $(ARM_OBJ) : %.o : %.c Makefile .depend
14 $(CC) -c $(CFLAGS) $< -o $@
15 $(AR) r $(COMMON)/common.a $@
17 $(ARM_ASMOBJ) : %.o : %.s Makefile .depend
18 $(CC) -c $(CFLAGS) $< -o $@
19 $(AR) r $(COMMON)/common.a $@
22 # The .depend files contains the list of header files that the
23 # various source files depend on. By doing this, we'll only
24 # rebuild the .o's that are affected by header files changing.
27 $(CC) $(CFLAGS) -M $(SRC_FILES) > .depend
29 ifeq (.depend,$(wildcard .depend))