git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel/x86-smp - Fixing SMP support
[tpg/acess2.git]
/
KernelLand
/
Modules
/
Makefile.tpl
diff --git
a/KernelLand/Modules/Makefile.tpl
b/KernelLand/Modules/Makefile.tpl
index
f1c31a5
..
19fd77e
100644
(file)
--- a/
KernelLand/Modules/Makefile.tpl
+++ b/
KernelLand/Modules/Makefile.tpl
@@
-6,14
+6,16
@@
_CPPFLAGS := $(CPPFLAGS)
-include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg
-include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg
-LIBINCLUDES := $(addprefix -I$(ACESSDIR)/Modules/,$(DEPS))
+LIBINCLUDES := $(addprefix -I$(ACESSDIR)/
KernelLand/
Modules/,$(DEPS))
LIBINCLUDES := $(addsuffix /include,$(LIBINCLUDES))
LIBINCLUDES := $(addsuffix /include,$(LIBINCLUDES))
-CPPFLAGS := -I$(ACESSDIR)/Kernel/include -I$(ACESSDIR)/Kernel/arch/$(ARCHDIR)/include
+CPPFLAGS := -I$(ACESSDIR)/KernelLand/Kernel/include -I$(ACESSDIR)/KernelLand/Kernel/arch/$(ARCHDIR)/include
+CPPFLAGS += -I$(ACESSDIR)/KernelLand/Modules
CPPFLAGS += -DARCH=$(ARCH) -DARCH_is_$(ARCH) -DARCHDIR_is_$(ARCHDIR)
CPPFLAGS += $(_CPPFLAGS)
CPPFLAGS += -DARCH=$(ARCH) -DARCH_is_$(ARCH) -DARCHDIR_is_$(ARCHDIR)
CPPFLAGS += $(_CPPFLAGS)
-CPPFLAGS += $(LIBINCLUDES)
+CPPFLAGS += $(LIBINCLUDES)
-ffreestanding
CFLAGS := -std=gnu99 -Wall -fno-stack-protector -g -O3
CFLAGS := -std=gnu99 -Wall -fno-stack-protector -g -O3
+CFLAGS += -Werror
ifneq ($(CATEGORY),)
FULLNAME := $(CATEGORY)_$(NAME)
ifneq ($(CATEGORY),)
FULLNAME := $(CATEGORY)_$(NAME)
@@
-49,9
+51,11
@@
clean:
install: $(BIN)
ifneq ($(BUILDTYPE),static)
install: $(BIN)
ifneq ($(BUILDTYPE),static)
- @$(xMKDIR) $(DISTROOT)/Modules/$(ARCH); true
- $(xCP) $(BIN) $(DISTROOT)/Modules/$(ARCH)/$(NAME).kmd
+ @$(xMKDIR) $(DISTROOT)/$(ARCH)/Modules; true
+ @gzip -c $(BIN) > $(BIN).gz
+ $(xCP) $(BIN).gz $(DISTROOT)/$(ARCH)/Modules/$(NAME).kmd.gz
else
else
+ @true
endif
endif
UCC
git Repository :: git.ucc.asn.au