projects
/
henge
/
webcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8f6cd44
)
Build System +Tool specific compilers and targets
author
ksg
<ken@mihrtec.com>
Tue, 30 Aug 2016 18:43:51 +0000
(11:43 -0700)
committer
ksg
<ken@mihrtec.com>
Tue, 30 Aug 2016 18:43:51 +0000
(11:43 -0700)
src/.make/buildtools.mk
patch
|
blob
|
history
src/Makefile
patch
|
blob
|
history
diff --git
a/src/.make/buildtools.mk
b/src/.make/buildtools.mk
index
d4cdc1d
..
feb2f5f
100644
(file)
--- a/
src/.make/buildtools.mk
+++ b/
src/.make/buildtools.mk
@@
-13,5
+13,4
@@
apcCL := -r /usr/local/the_march -o $(DISTDIR)/file.asspack
TOOLSUP := $(shell echo '$(TOOLS)' | tr '[:lower:]' '[:upper:]')
TOOLSRC := $(foreach tool,$(TOOLS),$($(tool)SRC))
TOOLSUP := $(shell echo '$(TOOLS)' | tr '[:lower:]' '[:upper:]')
TOOLSRC := $(foreach tool,$(TOOLS),$($(tool)SRC))
-TOOLDEP := $(TOOLSRC:.c=.d)
TOOLOBJ := $(TOOLSRC:.c=.o)
TOOLOBJ := $(TOOLSRC:.c=.o)
diff --git
a/src/Makefile
b/src/Makefile
index
89aba0e
..
64a42a1
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-15,7
+15,7
@@
APPFLAGS :=
APPOBJ :=
#Dependencies which must be built before the executable
APPDEPS :=
APPOBJ :=
#Dependencies which must be built before the executable
APPDEPS :=
-#Directories containing independent tools
+#Directories containing independent tools
for GNU
TOOLS := apc
##################################################
#Emscripten Info
TOOLS := apc
##################################################
#Emscripten Info
@@
-77,9
+77,16
@@
TOOLTARGS := $(foreach tool,$(TOOLS),$(tool)/$(tool))
$(TOOLS): $(TOOLTARGS)
T = $(notdir $@)
$(TOOLS): $(TOOLTARGS)
T = $(notdir $@)
+B = $(basename $T)
$(TOOLTARGS): $(TOOLOBJ)
$($TCC) $($TFLG) $($TSRC:.c=.o) -o $@
$(TOOLTARGS): $(TOOLOBJ)
$($TCC) $($TFLG) $($TSRC:.c=.o) -o $@
+#Tools only work on whatever system they're designed for
+#(typically GNU), so their creation rules are dependent
+#on each tool (define in .make/.buildtools.mk)
+$(foreach tool,$(TOOLS),$(tool)/%.o): %.c
+ $($BCC) $(BFLG) $< -c -o $@
+
#Put our toolsrc on the ctarg list for generating deps
CTARG := $(CTARG) $(TOOLOBJ)
endif
#Put our toolsrc on the ctarg list for generating deps
CTARG := $(CTARG) $(TOOLOBJ)
endif