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