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
Fixed compile issues in AxWin2 WM
[tpg/acess2.git]
/
Usermode
/
Applications
/
Makefile.tpl
diff --git
a/Usermode/Applications/Makefile.tpl
b/Usermode/Applications/Makefile.tpl
index
8aad269
..
d18dc77
100644
(file)
--- a/
Usermode/Applications/Makefile.tpl
+++ b/
Usermode/Applications/Makefile.tpl
@@
-1,26
+1,34
@@
-# Acess2 - Application Template Makefile
#
#
+# Acess2
+# - Application Template Makefile
#
#
-CFLAGS += -Wall -fno-builtin -fno-stack-protector -g
+CFLAGS += -Wall -
Werror -
fno-builtin -fno-stack-protector -g
LDFLAGS +=
DEPFILES := $(OBJ:%.o=%.d)
LDFLAGS +=
DEPFILES := $(OBJ:%.o=%.d)
+_BIN := $(OUTPUTDIR)$(DIR)/$(BIN)
+
.PHONY : all clean install
.PHONY : all clean install
-all: $(BIN)
+all: $(
_
BIN)
clean:
clean:
- @$(RM) $(OBJ) $(BIN) $(BIN).dsm Map.txt
+ @$(RM) $(OBJ) $(
DEPFILES) $(_
BIN) $(BIN).dsm Map.txt
-install: $(BIN)
- $(xCP) $(BIN) $(DISTROOT)/$(DIR)/
+install: $(
_
BIN)
+ $(xCP) $(
_
BIN) $(DISTROOT)/$(DIR)/
-$(BIN): $(OBJ)
+$(_BIN): $(OBJ)
+ @mkdir -p $(dir $(_BIN))
@echo --- $(LD) -o $@
@echo --- $(LD) -o $@
+ifneq ($(_DBGMAKEFILE),)
+ $(LD) -g $(LDFLAGS) -o $@ $(OBJ) -Map Map.txt
+else
@$(LD) -g $(LDFLAGS) -o $@ $(OBJ) -Map Map.txt
@$(LD) -g $(LDFLAGS) -o $@ $(OBJ) -Map Map.txt
- @objdump -d -S $(BIN) > $(BIN).dsm
+endif
+ @objdump -d -S $(_BIN) > $(BIN).dsm
$(OBJ): %.o: %.c
@echo --- GCC -o $@
$(OBJ): %.o: %.c
@echo --- GCC -o $@
UCC
git Repository :: git.ucc.asn.au