changing circuitry to disable RTC, update initialization to match
[fw/openalt] / FreeRTOS / Makefile
1 SRC_FILES=croutine.c list.c queue.c tasks.c
2
3 SUBDIRS=portable
4
5 #
6 # Define all object files.
7 #
8 ARM_OBJ = $(SRC_FILES:.c=.o)
9
10 .PHONY: all
11 all: $(ARM_OBJ)
12         @for i in $(SUBDIRS); do \
13         (cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS) all); done
14
15 $(ARM_OBJ) : %.o : %.c Makefile .depend
16         $(CC) -c $(CFLAGS) $< -o $@
17         $(AR) r $(COMMON)/common.a $@
18
19 #
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.
23 #
24 .depend:
25                         $(CC) $(CFLAGS) -M $(SRC_FILES) > .depend
26
27 ifeq (.depend,$(wildcard .depend))
28 include .depend
29 endif