changing circuitry to disable RTC, update initialization to match
[fw/openalt] / cpu / Makefile
1 SRC_FILES=cpu.c
2
3 #
4 # Define all object files.
5 #
6 ARM_OBJ = $(SRC_FILES:.c=.o)
7
8 .PHONY: all
9 all: $(ARM_OBJ)
10
11 $(ARM_OBJ) : %.o : %.c Makefile .depend
12         $(CC) -c $(CFLAGS) $< -o $@
13         $(AR) r $(COMMON)/common.a $@
14
15 #
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.
19 #
20 .depend:
21                         $(CC) $(CFLAGS) -M $(SRC_FILES) > .depend
22
23 ifeq (.depend,$(wildcard .depend))
24 include .depend
25 endif