Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 1 | |
| 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 Narayanamurthy | 8bcd5fd | 2011-01-17 17:18:44 -0800 | [diff] [blame] | 29 | ifeq ($(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 $@ |
| 34 | else |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 35 | $(BUILDDIR)/%.o: %.S $(SRCDEPS) |
| 36 | @$(MKDIR) |
| 37 | @echo compiling $< |
| 38 | $(NOECHO)$(CC) $(CFLAGS) $(ASMFLAGS) $(INCLUDES) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@ |
Subbaraman Narayanamurthy | 8bcd5fd | 2011-01-17 17:18:44 -0800 | [diff] [blame] | 39 | endif |