Small commits to the .gitignore file
[akaros.git] / ivylib / Makefrag
1 NATIVECC := ivycc
2
3 OBJDIRS += ivylib
4
5 IVYLIB_KERN_SRCFILES :=         ivylib/deputy_kern.c
6
7 IVYLIB_USER_SRCFILES :=         ivylib/deputy_user.c
8
9 IVYLIB_KERN_OBJFILES := $(patsubst ivylib/%.c, $(OBJDIR)/ivylib/%.o, $(IVYLIB_KERN_SRCFILES))
10 IVYLIB_USER_OBJFILES := $(patsubst ivylib/%.c, $(OBJDIR)/ivylib/%.o, $(IVYLIB_USER_SRCFILES))
11
12
13 $(OBJDIR)/ivylib/deputy_kern.o: ivylib/deputy_kern.c
14         @echo + cc[IVYLIB] $<
15         @mkdir -p $(@D)
16         $(NATIVECC) -nostdinc $(KERN_CFLAGS) -c -o $@ $<
17
18 $(OBJDIR)/ivylib/deputy_user.o: ivylib/deputy_user.c
19         @echo + cc[IVYLIB] $<
20         @mkdir -p $(@D)
21         $(V)$(NATIVECC) -nostdinc $(USER_CFLAGS) -c -o $@ $<
22
23 $(OBJDIR)/ivylib/libivykern.a: $(IVYLIB_KERN_OBJFILES)
24         @echo + ar $@
25         $(AR) r $@ $(IVYLIB_KERN_OBJFILES)
26
27 $(OBJDIR)/ivylib/libivyuser.a: $(IVYLIB_USER_OBJFILES)
28         @echo + ar $@
29         $(V)$(AR) r $@ $(IVYLIB_USER_OBJFILES)