blob: a75a93bdcd5d949138f6a73309c3a4c6fa65c12d [file] [log] [blame]
aliguori17759182009-01-21 18:12:52 +00001
2%.o: %.c
aliguori28c699a2009-01-26 17:07:46 +00003 $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
aliguori17759182009-01-21 18:12:52 +00004
5%.o: %.S
aliguori28c699a2009-01-26 17:07:46 +00006 $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@")
aliguori17759182009-01-21 18:12:52 +00007
8%.o: %.m
aliguori28c699a2009-01-26 17:07:46 +00009 $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@")
aliguori17759182009-01-21 18:12:52 +000010
aliguori28c699a2009-01-26 17:07:46 +000011LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)," LINK $(TARGET_DIR)$@")
aliguori3aa892d2009-01-21 18:13:02 +000012
13%$(EXESUF): %.o
14 $(LINK)
aliguori4f188f82009-01-21 18:13:09 +000015
aliguori93a0dba2009-01-21 18:13:16 +000016%.a:
aliguori28c699a2009-01-26 17:07:46 +000017 $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@")
aliguori93a0dba2009-01-21 18:13:16 +000018
aliguori28c699a2009-01-26 17:07:46 +000019quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1))