projects
/
henge
/
apc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59c61dc
)
minor variable management usage
author
ken
<ken@mihrtec.com>
Sat, 17 Dec 2016 00:29:27 +0000
(16:29 -0800)
committer
ken
<ken@mihrtec.com>
Sat, 17 Dec 2016 00:29:27 +0000
(16:29 -0800)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
079c4cc
..
2d928e6
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-30,7
+30,7
@@
LDFLAGS ?=
LDLIBS ?= -lunistring
apcLIBS ?=
apc-dLIBS ?=
LDLIBS ?= -lunistring
apcLIBS ?=
apc-dLIBS ?=
-LDCMD = $(strip
gcc
$(LDFLAGS) $(if $2,-o $2) $1) $(LDLIBS) $($1LIBS)
+LDCMD = $(strip
$(CC)
$(LDFLAGS) $(if $2,-o $2) $1) $(LDLIBS) $($1LIBS)
# APC is built from Ragel, Bison and C source code only.
ySRC := $(shell find ./src -type f -name '*.y')
# APC is built from Ragel, Bison and C source code only.
ySRC := $(shell find ./src -type f -name '*.y')
@@
-63,7
+63,7
@@
endif
# Rules
.SECONDEXPANSION:
$(DRIVERS:%=%-d) $(DRIVERS): $$($$@SRC) | $(hGEN)
# Rules
.SECONDEXPANSION:
$(DRIVERS:%=%-d) $(DRIVERS): $$($$@SRC) | $(hGEN)
- $(
strip $(call LDCMD,$^,$@)
)
+ $(
call LDCMD,$^,$@
)
%-d.o: CFLAGS+= -Og -ggdb
%.o %-d.o: %.c $$(call cGENDEP,$$(dir $$@)%.c)
%-d.o: CFLAGS+= -Og -ggdb
%.o %-d.o: %.c $$(call cGENDEP,$$(dir $$@)%.c)