aliguori | 1775918 | 2009-01-21 18:12:52 +0000 | [diff] [blame] | 1 | |
| 2 | %.o: %.c |
aliguori | 28c699a | 2009-01-26 17:07:46 +0000 | [diff] [blame] | 3 | $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@") |
aliguori | 1775918 | 2009-01-21 18:12:52 +0000 | [diff] [blame] | 4 | |
| 5 | %.o: %.S |
aliguori | 28c699a | 2009-01-26 17:07:46 +0000 | [diff] [blame] | 6 | $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@") |
aliguori | 1775918 | 2009-01-21 18:12:52 +0000 | [diff] [blame] | 7 | |
| 8 | %.o: %.m |
aliguori | 28c699a | 2009-01-26 17:07:46 +0000 | [diff] [blame] | 9 | $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@") |
aliguori | 1775918 | 2009-01-21 18:12:52 +0000 | [diff] [blame] | 10 | |
aliguori | 28c699a | 2009-01-26 17:07:46 +0000 | [diff] [blame] | 11 | LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)," LINK $(TARGET_DIR)$@") |
aliguori | 3aa892d | 2009-01-21 18:13:02 +0000 | [diff] [blame] | 12 | |
| 13 | %$(EXESUF): %.o |
| 14 | $(LINK) |
aliguori | 4f188f8 | 2009-01-21 18:13:09 +0000 | [diff] [blame] | 15 | |
aliguori | 93a0dba | 2009-01-21 18:13:16 +0000 | [diff] [blame] | 16 | %.a: |
aliguori | 28c699a | 2009-01-26 17:07:46 +0000 | [diff] [blame] | 17 | $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@") |
aliguori | 93a0dba | 2009-01-21 18:13:16 +0000 | [diff] [blame] | 18 | |
aliguori | 28c699a | 2009-01-26 17:07:46 +0000 | [diff] [blame] | 19 | quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1)) |