Build - Misc changes for clang building
authorJohn Hodge (sonata) <[email protected]>
Tue, 13 Nov 2012 06:01:22 +0000 (14:01 +0800)
committerJohn Hodge (sonata) <[email protected]>
Tue, 13 Nov 2012 06:01:22 +0000 (14:01 +0800)
BuildConf/host/Makefile.cfg
BuildConf/x86/Makefile.cfg
Makefile

index 057e96e..d3241b1 100644 (file)
@@ -6,6 +6,10 @@
 SAVED_CC_ := $(CC)
 SAVED_LD_ := $(LD)
 
+ifeq ($(HOST_ARCH),)
+$(error Please set HOST_ARCH to the architecture to compile, e.g. x86)
+endif
+
 include $(ACESSDIR)/BuildConf/$(HOST_ARCH)/Makefile.cfg
 
 OBJDUMP := objdump -S
index 7d5dcc1..65777d1 100644 (file)
@@ -3,6 +3,7 @@
 #
 
 CC = i586-elf-gcc
+#CC = clang -m32
 LD = i586-elf-ld
 #CC = gcc
 #LD = ld
index abf19e5..0d265c4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,8 @@ AI_USRLIBS := $(addprefix allinstall-,$(USRLIBS))
 AI_USRAPPS := $(addprefix allinstall-,$(USRAPPS))
 
 .PHONY: all clean install \
+       kmode all-kmode clean-kmode \
+       all-user clean-user \
        $(ALL_MODULES) all-Kernel $(ALL_USRLIBS) $(ALL_USRAPPS) \
        $(AI_MODULES) allinstall-Kernel $(AI_USRLIBS) $(AI_USRAPPS) \
        $(CLEAN_MODULES) clean-Kernel $(CLEAN_USRLIBS) $(CLEAN_USRAPPS) \
@@ -44,6 +46,7 @@ AI_USRAPPS := $(addprefix allinstall-,$(USRAPPS))
 
 kmode: $(AI_MODULES) $(AI_DYNMODS) allinstall-Kernel
 all-kmode:     $(ALL_MODULES) $(ALL_DYNMODS) all-Kernel
+clean-kmode:   $(CLEAN_MODULES) $(CLEAN_DYNMODS) clean-Kernel
 
 all-user: $(ALL_USRLIBS) $(ALL_USRAPPS)
 clean-user: $(CLEAN_USRLIBS) $(CLEAN_USRAPPS)

UCC git Repository :: git.ucc.asn.au