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 - Move debug hooks to common handler
[tpg/acess2.git]
/
KernelLand
/
Modules
/
Makefile.tpl
diff --git
a/KernelLand/Modules/Makefile.tpl
b/KernelLand/Modules/Makefile.tpl
index
e2ef60a
..
a5ea222
100644
(file)
--- a/
KernelLand/Modules/Makefile.tpl
+++ b/
KernelLand/Modules/Makefile.tpl
@@
-10,11
+10,13
@@
LIBINCLUDES := $(addprefix -I$(ACESSDIR)/KernelLand/Modules/,$(DEPS))
LIBINCLUDES := $(addsuffix /include,$(LIBINCLUDES))
CPPFLAGS := -I$(ACESSDIR)/KernelLand/Kernel/include -I$(ACESSDIR)/KernelLand/Kernel/arch/$(ARCHDIR)/include
LIBINCLUDES := $(addsuffix /include,$(LIBINCLUDES))
CPPFLAGS := -I$(ACESSDIR)/KernelLand/Kernel/include -I$(ACESSDIR)/KernelLand/Kernel/arch/$(ARCHDIR)/include
+CPPFLAGS += -I$(ACESSDIR)/KernelLand/Modules
+CPPFLAGS += -I$(ACESSDIR)/Usermode/Libraries/ld-acess.so_src/include_exp/
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
+CFLAGS += -Werror
-fno-omit-frame-pointer
ifneq ($(CATEGORY),)
FULLNAME := $(CATEGORY)_$(NAME)
ifneq ($(CATEGORY),)
FULLNAME := $(CATEGORY)_$(NAME)
@@
-50,9
+52,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
@@
-71,6
+75,7
@@
obj-$(_SUFFIX)/%.o: %.c Makefile $(CFGFILES)
@echo --- $(CC) -o $@
@mkdir -p $(dir $@)
@$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
@echo --- $(CC) -o $@
@mkdir -p $(dir $@)
@$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
- @$(CC) -M $(CPPFLAGS) -MT $@ -o obj-$(_SUFFIX)/$*.d $<
+ @$(CC) -M $(CPPFLAGS) -MT $@ -
MP -
o obj-$(_SUFFIX)/$*.d $<
-include $(DEPFILES)
-include $(DEPFILES)
+# vim: ft=make
UCC
git Repository :: git.ucc.asn.au