Fixed up ivy annotations on the new structure supporting page_coloring.
[akaros.git] / user / apps / roslib / Makefrag
1 USER_APPS_ROSLIB_DIR = $(USER_APPS_DIR)/roslib
2 OBJDIRS += $(USER_APPS_ROSLIB_DIR)
3
4 USER_APPS_ROSLIB_CFLAGS    := $(USER_CFLAGS) \
5                               -I$(USER_ROSLIB_INCLUDE_DIR)
6 USER_APPS_ROSLIB_LDFLAGS   := $(USER_LDFLAGS) -static \
7                               -T $(USER_APPS_ROSLIB_DIR)/apps_$(TARGET_ARCH).ld
8 USER_APPS_ROSLIB_LDDIRS    := -L$(OBJDIR)/$(USER_ROSLIB_DIR)
9 USER_APPS_ROSLIB_LDLIBS    := --start-group -livyroslib -lroslib --end-group
10 USER_APPS_ROSLIB_LDOBJS    := $(OBJDIR)/$(USER_ROSLIB_ARCH_SRC_DIR)/entry.o 
11 USER_APPS_ROSLIB_LDDEPENDS := $(USER_APPS_ROSLIB_LDOBJS) \
12                               $(OBJDIR)/$(USER_ROSLIB_DIR)/libivyroslib.a \
13                               $(OBJDIR)/$(USER_ROSLIB_DIR)/libroslib.a \
14                               $(OBJDIR)/$(USER_APPS_ROSLIB_DIR)/%.o       
15 USER_APPS_ROSLIB_GCC_LIB   := $(GCC_LIB)
16
17 $(OBJDIR)/$(USER_APPS_ROSLIB_DIR)/%.o: $(USER_APPS_ROSLIB_DIR)/%.c
18         @echo + cc [APPS ROSLIB] $<
19         @mkdir -p $(@D)
20         $(V)$(CC) $(USER_APPS_ROSLIB_CFLAGS) -c -o $@ $<
21
22 $(OBJDIR)/$(USER_APPS_ROSLIB_DIR)/%: $(USER_APPS_ROSLIB_LDDEPENDS)
23         @echo + ld [APPS ROSLIB] $@
24         $(V)$(LD) -o $@ $(USER_APPS_ROSLIB_LDFLAGS) $@.o \
25                     $(USER_APPS_ROSLIB_LDOBJS) $(USER_APPS_ROSLIB_LDDIRS) \
26                     $(USER_APPS_ROSLIB_LDLIBS) $(USER_APPS_ROSLIB_GCC_LIB)
27         $(V)$(OBJDUMP) -S $@ > $@.asm
28         $(V)$(NM) -n $@ > $@.sym