mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-30 16:13:51 +00:00
Fix Makefile.in for OpenWRT build
Was not passing $(CFLAGS) $(DEFS) to compile servald_version.c, which provoked a "cc1: note: someone does not honour COPTS correctly, passed 0 times" warning Also was not doing "mkdir -p opts" before the compile, which produced an "opts/version.o: No such file or directory: error
This commit is contained in:
parent
c8b317b328
commit
838f971850
@ -113,12 +113,13 @@ Makefile: $(wildcard Makefile.in) $(wildcard configure)
|
|||||||
configure: $(wildcard configure.in)
|
configure: $(wildcard configure.in)
|
||||||
$(warning configure may be out of date, please run autoreconf -f -i)
|
$(warning configure may be out of date, please run autoreconf -f -i)
|
||||||
|
|
||||||
$(OBJSDIR_TOOLS)/version.o: $(SERVALD_OBJS) version_string.sh $(wildcard VERSION.txt) COPYRIGHT.txt Makefile
|
$(OBJSDIR_TOOLS)/version.o: $(SERVALD_OBJS) version_servald.c version_string.sh $(wildcard VERSION.txt) COPYRIGHT.txt Makefile
|
||||||
@echo CC version_servald.c
|
@echo CC version_servald.c
|
||||||
|
@mkdir -p $(dir $@)
|
||||||
@$(RM) $(@:.o=.gcno) $(@:.o=.gcda)
|
@$(RM) $(@:.o=.gcno) $(@:.o=.gcda)
|
||||||
@V=`./version_string.sh --ignore-untracked` \
|
@V=`./version_string.sh --ignore-untracked` \
|
||||||
&& C="`sed -e :a -e N -e '$$!ba' -e 's/[\\\\"]/\\\\&/g' -e 's/\\n/\\\\n/g' COPYRIGHT.txt`" \
|
&& C="`sed -e :a -e N -e '$$!ba' -e 's/[\\\\"]/\\\\&/g' -e 's/\\n/\\\\n/g' COPYRIGHT.txt`" \
|
||||||
&& $(CC) -c version_servald.c -o $@ -DSERVALD_VERSION="\"$$V\"" -DSERVALD_COPYRIGHT="\"$$C\""
|
&& $(CC) $(CFLAGS) $(DEFS) -c version_servald.c -o $@ -DSERVALD_VERSION="\"$$V\"" -DSERVALD_COPYRIGHT="\"$$C\""
|
||||||
|
|
||||||
#' <-- fixes vim syntax highlighting
|
#' <-- fixes vim syntax highlighting
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user