Usermode - Fixes to magic non-recusive build
authorJohn Hodge <[email protected]>
Wed, 4 Jul 2012 13:34:16 +0000 (21:34 +0800)
committerJohn Hodge <[email protected]>
Wed, 4 Jul 2012 13:34:16 +0000 (21:34 +0800)
Usermode/Applications/ip_src/rules.mk
Usermode/Applications/rules.mk
Usermode/Libraries/rules.mk

index f420eb8..4dff114 100644 (file)
@@ -3,7 +3,7 @@
 include $(BASE)header.mk
 
 # Variables
-SRCS := main.c
+SRCS := main.c addr.c routes.c
 BIN  := $(OUTPUTDIR)Bin/ifconfig
 
 LDFLAGS-$(DIR) += -lnet
index fb4d8eb..5779b3d 100644 (file)
@@ -2,7 +2,8 @@ include $(BASE)header.mk
 
 # Rules
 ASFLAGS-$(DIR)  := -felf -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
-CPPFLAGS-$(DIR) := -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
+CPPFLAGS-$(DIR) := -ffreestanding -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
+CPPFLAGS-$(DIR) += $(addprefix -I,$(wildcard $(ACESSUSERDIR)Libraries/*/include_exp/))
 CFLAGS-$(DIR)   := -g -Wall -fno-stack-protector -O3
 LDFLAGS-$(DIR)  := -T $(OUTPUTDIR)Libs/acess.ld -rpath-link $(OUTPUTDIR)Libs -L $(OUTPUTDIR)Libs -I /Acess/Libs/ld-acess.so -lld-acess -lc $(OUTPUTDIR)Libs/crtbegin.o $(OUTPUTDIR)Libs/crtend.o
 
index 4786df9..5bac18f 100644 (file)
@@ -4,7 +4,8 @@ include $(BASE)header.mk
 
 # Rules
 ASFLAGS-$(DIR)  := -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
-CPPFLAGS-$(DIR) := -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
+CPPFLAGS-$(DIR) := -ffreestanding -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
+CPPFLAGS-$(DIR) += $(addprefix -I,$(wildcard $(ACESSUSERDIR)Libraries/*/include_exp/))
 CFLAGS-$(DIR)   := -g -Wall -fPIC -fno-stack-protector -O3
 LDFLAGS-$(DIR)  := -g -nostdlib -shared -I/Acess/Libs/ld-acess.so -lld-acess -e SoMain -x -L$(OUTPUTDIR)Libs/ --no-undefined
 

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