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
Cleanup and Bugfixing
[tpg/acess2.git]
/
Modules
/
Makefile.tpl
diff --git
a/Modules/Makefile.tpl
b/Modules/Makefile.tpl
index
7d20cd3
..
2484610
100644
(file)
--- a/
Modules/Makefile.tpl
+++ b/
Modules/Makefile.tpl
@@
-5,7
+5,7
@@
-include ../../Makefile.cfg
CPPFLAGS = -I../../Kernel/include -I../../Kernel/arch/$(ARCHDIR)/include -DARCH=$(ARCH)
-include ../../Makefile.cfg
CPPFLAGS = -I../../Kernel/include -I../../Kernel/arch/$(ARCHDIR)/include -DARCH=$(ARCH)
-CFLAGS = -Wall -Werror $(CPPFLAGS)
+CFLAGS = -Wall -Werror
-fno-stack-protector
$(CPPFLAGS)
OBJ := $(addsuffix .$(ARCH),$(OBJ))
BIN = ../$(NAME).kmd.$(ARCH)
OBJ := $(addsuffix .$(ARCH),$(OBJ))
BIN = ../$(NAME).kmd.$(ARCH)
@@
-19,12
+19,14
@@
DEPFILES := $(DEPFILES:%.o.$(ARCH)=%.d.$(ARCH))
all: $(BIN)
clean:
all: $(BIN)
clean:
- $(RM) $(BIN) $(KOBJ) $(OBJ) $(DEPFILES)
+ $(RM) $(BIN) $(
BIN).dsm $(
KOBJ) $(OBJ) $(DEPFILES)
$(BIN): $(OBJ)
@echo --- $(LD) -o $@
@$(LD) -T ../link.ld -shared -nostdlib -o $@ $(OBJ)
# @$(LD) -shared -nostdlib -o $@ $(OBJ)
$(BIN): $(OBJ)
@echo --- $(LD) -o $@
@$(LD) -T ../link.ld -shared -nostdlib -o $@ $(OBJ)
# @$(LD) -shared -nostdlib -o $@ $(OBJ)
+ @$(OBJDUMP) -d $(BIN) > $(BIN).dsm
+ cp $@ $(DISTROOT)/Modules/$(NAME).kmd
@echo --- $(LD) -o $(KOBJ)
@$(CC) -Wl,-r -nostdlib -o $(KOBJ) $(OBJ)
@echo --- $(LD) -o $(KOBJ)
@$(CC) -Wl,-r -nostdlib -o $(KOBJ) $(OBJ)
UCC
git Repository :: git.ucc.asn.au