Moved pthreads into parlib
[akaros.git] / GNUmakefile
index c44f8ca..3644769 100644 (file)
@@ -55,7 +55,8 @@ KERN_CFLAGS := --deputy\
                   --no-rc-sharc\
                   --sc-dynamic-is-error\
                   --sc-ops=$(INCLUDE_DIR)/ivy/sharc.h\
-                  --sc-all-in-thread
+                  --sc-all-in-thread\
+                  --enable-precompile
 USER_CFLAGS := --deputy --enable-error-db
 CC         := ivycc --gcc=$(GCCPREFIX)gcc
 else
@@ -70,12 +71,14 @@ OBJDUMP     := $(GCCPREFIX)objdump
 NM         := $(GCCPREFIX)nm
 PERL    := perl
 
+EXTRAARGS ?= -Wno-attributes -fno-stack-protector -fgnu89-inline
+
 # Universal compiler flags
 # -fno-builtin is required to avoid refs to undefined functions in the kernel.
 # Only optimize to -O1 to discourage inlining, which complicates backtraces.
 CFLAGS := $(CFLAGS) -D$(TARGET_ARCH) $(EXTRAARGS)
-CFLAGS += -O2 -pipe -MD -fno-builtin -fno-stack-protector -gstabs
-CFLAGS += -Wall -Wno-format -Wno-unused -Wno-attributes
+CFLAGS += -O2 -pipe -MD -fno-builtin -gstabs
+CFLAGS += -Wall -Wno-format -Wno-unused
 CFLAGS += -nostdinc -Igccinclude/$(TARGET_ARCH)
 
 # Universal loader flags
@@ -125,7 +128,7 @@ $(OBJDIR)/.deps: $(foreach dir, $(OBJDIRS), $(wildcard $(OBJDIR)/$(dir)/*.d))
 -include $(OBJDIR)/.deps
 
 # Use doxygen to make documentation for ROS
-docs: all
+docs: 
        @doxygen doc/rosdoc.cfg
        @if [ ! -d doc/rosdoc/html/img ];          \
         then                                      \