remove gmake-specific code from Makefile.src
The awk script for NOSTATICCORE is currently broken.
This commit is contained in:
+20
-16
@@ -447,23 +447,27 @@ QUIETCC=0
|
|||||||
|
|
||||||
# NB: This is not used for all .c files (see explicit rules in
|
# NB: This is not used for all .c files (see explicit rules in
|
||||||
# dependencies).
|
# dependencies).
|
||||||
ifndef NOSTATICCORE
|
# if NOSTATICCORE
|
||||||
# A normal or cross compile.
|
# A normal or cross compile.
|
||||||
|
# else
|
||||||
|
# NOSTATICCORE: A compile that makes all functions non-static.
|
||||||
|
# Rule /=/ allows 2 definitions of char array brief_feeling
|
||||||
|
# fi
|
||||||
$(TARGETPFX)%.o : %.c
|
$(TARGETPFX)%.o : %.c
|
||||||
$(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ $<
|
if [ x$(NOSTATICCORE) = 'x' ]; then \
|
||||||
else
|
$(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ $< ; \
|
||||||
# NOSTATICCORE: A compile that makes all functions non-static.
|
else \
|
||||||
# Rule /=/ allows 2 definitions of char array brief_feeling
|
( \
|
||||||
$(TARGETPFX)%.o : %.c
|
$(AWK) ' \
|
||||||
awk ' \
|
BEGIN{print "#line 1 \"$<\""}; \
|
||||||
BEGIN{print "#line 1 \"$<\""} \
|
/=/{print;next}; \
|
||||||
/=/{print;next} \
|
sub(/^static inline/, ""){print;next}; \
|
||||||
sub(/^static inline/, "") \
|
sub(/^static( |$$)/, ""){print;next}; \
|
||||||
sub(/^static( |$$)/, "") \
|
{print}; \
|
||||||
' < $< > .$<
|
' < $< > .$< && \
|
||||||
$(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ .$<
|
$(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ .$< ; \
|
||||||
endif
|
) \
|
||||||
|
fi
|
||||||
|
|
||||||
# Verbosity definitions, begin
|
# Verbosity definitions, begin
|
||||||
# Set QUIETCC=1 above to output less feedback while building.
|
# Set QUIETCC=1 above to output less feedback while building.
|
||||||
|
|||||||
Reference in New Issue
Block a user