Track user and kernel time per thread.
[newos.git] / lib / nulibc / string / arch / i386 / libc.mk
blob0de8133c73f9f9a1bcfac453ce6d168ad8678d22
1 LIBC_ARCH_DIR = $(LIBC_DIR)/arch/$(ARCH)
2 LIBC_ARCH_OBJ_DIR = $(LIBC_ARCH_DIR)/$(OBJ_DIR)
4 LIBC_OBJS += \
5 $(LIBC_ARCH_OBJ_DIR)/memcpy.o
7 # build prototypes
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 $@