1 LIBC_ARCH_DIR
= $(LIBC_DIR
)/arch
/$(ARCH
)
2 LIBC_ARCH_OBJ_DIR
= $(LIBC_ARCH_DIR
)/$(OBJ_DIR
)
5 $(LIBC_ARCH_OBJ_DIR
)/memcpy.o
8 $(LIBC_ARCH_OBJ_DIR
)/%.o
: $(LIBC_ARCH_DIR
)/%.c
9 @if
[ ! -d
$(LIBC_ARCH_OBJ_DIR
) ]; then mkdir
-p
$(LIBC_ARCH_OBJ_DIR
); fi
10 $(CC
) -c
$< $(GLOBAL_CFLAGS
) -Iinclude
-o
$@
12 $(LIBC_ARCH_OBJ_DIR
)/%.d
: $(LIBC_ARCH_DIR
)/%.c
13 @if
[ ! -d
$(LIBC_ARCH_OBJ_DIR
) ]; then mkdir
-p
$(LIBC_ARCH_OBJ_DIR
); fi
14 @echo
"making deps for $<..."
15 @
($(ECHO
) -n
$(dir $@
); $(CC
) $(GLOBAL_CFLAGS
) -Iinclude
-M
-MG
$<) > $@
17 $(LIBC_ARCH_OBJ_DIR
)/%.d
: $(LIBC_ARCH_DIR
)/%.S
18 @if
[ ! -d
$(LIBC_ARCH_OBJ_DIR
) ]; then mkdir
-p
$(LIBC_ARCH_OBJ_DIR
); fi
19 @echo
"making deps for $<..."
20 @
($(ECHO
) -n
$(dir $@
);$(CC
) $(GLOBAL_CFLAGS
) -Iinclude
-M
-MG
$<) > $@
22 $(LIBC_ARCH_OBJ_DIR
)/%.o
: $(LIBC_ARCH_DIR
)/%.S
23 @if
[ ! -d
$(LIBC_ARCH_OBJ_DIR
) ]; then mkdir
-p
$(LIBC_ARCH_OBJ_DIR
); fi
24 $(CC
) -c
$< $(GLOBAL_CFLAGS
) -Iinclude
-o
$@