Fixed up ivy annotations on the new structure supporting page_coloring.
[akaros.git] / user / roslib / src / Makefrag
1 USER_ROSLIB_SRC_DIR = $(USER_ROSLIB_DIR)/src
2 OBJDIRS += $(USER_ROSLIB_SRC_DIR)
3
4 USER_ROSLIB_SRC_CFLAGS   := $(USER_CFLAGS) -g\
5                             -I$(USER_ROSLIB_INCLUDE_DIR)
6
7 USER_ROSLIB_SRC_SRCFILES := $(USER_ROSLIB_SRC_DIR)/console.c \
8                             $(USER_ROSLIB_SRC_DIR)/libmain.c \
9                             $(USER_ROSLIB_SRC_DIR)/syswrapper.c \
10                             $(USER_ROSLIB_SRC_DIR)/exit.c \
11                             $(USER_ROSLIB_SRC_DIR)/panic.c \
12                             $(USER_ROSLIB_SRC_DIR)/printf.c \
13                             $(USER_ROSLIB_SRC_DIR)/printfmt.c \
14                             $(USER_ROSLIB_SRC_DIR)/readline.c \
15                             $(USER_ROSLIB_SRC_DIR)/string.c \
16                             $(USER_ROSLIB_SRC_DIR)/syscall.c \
17                             $(USER_ROSLIB_SRC_DIR)/asynccall.c \
18                             $(USER_ROSLIB_SRC_DIR)/atomic.c \
19                             $(USER_ROSLIB_SRC_DIR)/timer.c \
20                             $(USER_ROSLIB_ARCH_SRCFILES)
21
22 USER_ROSLIB_SRC_OBJFILES := $(patsubst $(USER_ROSLIB_SRC_DIR)/%.c, \
23                             $(OBJDIR)/$(USER_ROSLIB_SRC_DIR)/%.o,  \
24                             $(USER_ROSLIB_SRC_SRCFILES))
25 USER_ROSLIB_SRC_OBJFILES := $(patsubst $(USER_ROSLIB_SRC_DIR)/%.S, \
26                             $(OBJDIR)/$(USER_ROSLIB_SRC_DIR)/%.o,  \
27                             $(USER_ROSLIB_SRC_OBJFILES))
28
29 $(OBJDIR)/$(USER_ROSLIB_SRC_DIR)/%.o: $(USER_ROSLIB_SRC_DIR)/%.c
30         @echo + cc [ROSLIB] $<
31         @mkdir -p $(@D)
32         $(V)$(CC) $(USER_ROSLIB_SRC_CFLAGS) -c -o $@ $<
33
34 $(OBJDIR)/$(USER_ROSLIB_SRC_DIR)/%.o: $(USER_ROSLIB_SRC_DIR)/%.S
35         @echo + as [ROSLIB] $<
36         @mkdir -p $(@D)
37         $(V)$(CC) $(USER_ROSLIB_SRC_CFLAGS) -c -o $@ $<
38
39 $(OBJDIR)/$(USER_ROSLIB_DIR)/libroslib.a: $(USER_ROSLIB_SRC_OBJFILES)
40         @echo + ar [ROSLIB] $@
41         $(V)$(AR) r $@ $(USER_ROSLIB_SRC_OBJFILES) 2>/dev/null
42