Build system overhauled to use Kbuild (XCC)
[akaros.git] / user / c3po / threads / Makefrag
index 886de6c..f801db4 100644 (file)
@@ -1,6 +1,6 @@
 THREADS_NAME    := threads
 THREADS_UCNAME  := $(call uc, $(THREADS_NAME))
-THREADS_CFLAGS  := $(CFLAGS)
+THREADS_CFLAGS  := $(CFLAGS_USER)
 THREADS_HEADERS := $(wildcard $(THREADSDIR)/*.h)
 THREADS_CFILES  := $(wildcard $(THREADSDIR)/*.c)
 THREADS_OBJDIR  := $(OBJDIR)/$(THREADS_NAME)
@@ -11,15 +11,15 @@ LIBTHREADS = $(THREADS_OBJDIR)/lib$(THREADS_NAME).a
 
 $(THREADS_NAME)-clean:
        @echo + clean [$(LIBUCNAME) $(THREADS_UCNAME)]
-       $(V)rm -rf $(THREADS_OBJS) $(LIBTHREADS)
-       $(V)rm -rf $(THREADS_OBJDIR)
+       $(Q)rm -rf $(THREADS_OBJS) $(LIBTHREADS)
+       $(Q)rm -rf $(THREADS_OBJDIR)
 
 $(LIBTHREADS): $(THREADS_OBJS)
        @echo + ar [$(LIBUCNAME) $(THREADS_UCNAME)] $@
-       $(V)$(AR) rc $@ $^
+       $(Q)$(AR) rc $@ $^
 
 $(THREADS_OBJDIR)/%.o: $(THREADSDIR)/%.c $(THREADS_HEADERS)
        @echo + cc [$(LIBUCNAME) $(THREADS_UCNAME)] $<
        @mkdir -p $(@D)
-       $(V)$(CC) $(THREADS_CFLAGS) $(INCS) -o $@ -c $<
+       $(Q)$(CC) $(THREADS_CFLAGS) $(INCS) -o $@ -c $<