blob: e1f503e4ce5c7536b8b73203bc8e7864033be7b1 [file] [log] [blame]
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -07001
2$(BUILDDIR)/%.o: %.c $(SRCDEPS)
3 @$(MKDIR)
4 @echo compiling $<
5 $(NOECHO)$(CC) $(CFLAGS) $(THUMBCFLAGS) --std=c99 $(INCLUDES) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@
6
7$(BUILDDIR)/%.o: %.cpp $(SRCDEPS)
8 @$(MKDIR)
9 @echo compiling $<
10 $(NOECHO)$(CC) $(CFLAGS) $(CPPFLAGS) $(THUMBCFLAGS) $(INCLUDES) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@
11
12# to override thumb setting, mark the .o file as .Ao
13$(BUILDDIR)/%.Ao: %.c $(SRCDEPS)
14 @$(MKDIR)
15 @echo compiling $<
16 $(NOECHO)$(CC) $(CFLAGS) --std=c99 $(INCLUDES) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@
17
18$(BUILDDIR)/%.Ao: %.cpp $(SRCDEPS)
19 @$(MKDIR)
20 @echo compiling $<
21 $(NOECHO)$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@
22
23# assembly is always compiled in ARM mode at the moment
24$(BUILDDIR)/%.Ao: %.S $(SRCDEPS)
25 @$(MKDIR)
26 @echo compiling $<
27 $(NOECHO)$(CC) $(CFLAGS) $(ASMFLAGS) $(INCLUDES) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@
28
Subbaraman Narayanamurthy8bcd5fd2011-01-17 17:18:44 -080029ifeq ($(ENABLE_TRUSTZONE), 1)
30$(BUILDDIR)/%.o: %.S $(SRCDEPS)
31 @$(MKDIR)
32 @echo compiling $<
33 $(NOECHO)$(CC) -DENABLE_TRUSTZONE $(CFLAGS) $(ASMFLAGS) $(INCLUDES) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@
34else
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -070035$(BUILDDIR)/%.o: %.S $(SRCDEPS)
36 @$(MKDIR)
37 @echo compiling $<
38 $(NOECHO)$(CC) $(CFLAGS) $(ASMFLAGS) $(INCLUDES) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@
Subbaraman Narayanamurthy8bcd5fd2011-01-17 17:18:44 -080039endif