root / rules.mak @ b53d44e5
History | View | Annotate | Download (847 Bytes)
1 | 17759187 | aliguori | |
---|---|---|---|
2 | 17759187 | aliguori | %.o: %.c |
3 | a558ee17 | Juan Quintela | $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@") |
4 | 17759187 | aliguori | |
5 | 17759187 | aliguori | %.o: %.S |
6 | a558ee17 | Juan Quintela | $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@") |
7 | 17759187 | aliguori | |
8 | 17759187 | aliguori | %.o: %.m |
9 | a558ee17 | Juan Quintela | $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@") |
10 | 17759187 | aliguori | |
11 | 9abbdbfe | Anthony Liguori | LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(1) $(ARLIBS_BEGIN) $(ARLIBS) $(ARLIBS_END) $(LIBS)," LINK $(TARGET_DIR)$@") |
12 | 3aa892d7 | aliguori | |
13 | 3aa892d7 | aliguori | %$(EXESUF): %.o |
14 | 0bfe3ca5 | Anthony Liguori | $(call LINK,$^) |
15 | 4f188f88 | aliguori | |
16 | 93a0dba7 | aliguori | %.a: |
17 | 28c699a2 | aliguori | $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@") |
18 | 93a0dba7 | aliguori | |
19 | 28c699a2 | aliguori | quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1)) |
20 | 70071e17 | Juan Quintela | |
21 | 70071e17 | Juan Quintela | # cc-option |
22 | 8a2e6ab5 | Juan Quintela | # Usage: CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0) |
23 | 70071e17 | Juan Quintela | |
24 | 8a2e6ab5 | Juan Quintela | cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ |
25 | 8a2e6ab5 | Juan Quintela | > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) |