remove gmake-specific code from Makefile.src

The awk script for NOSTATICCORE is currently broken.
This commit is contained in:
nhkeni
2024-03-10 18:35:19 -04:00
parent 387b145b58
commit 998240d5f5
+17 -13
View File
@@ -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.
$(TARGETPFX)%.o : %.c # else
$(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ $<
else
# NOSTATICCORE: A compile that makes all functions non-static. # NOSTATICCORE: A compile that makes all functions non-static.
# Rule /=/ allows 2 definitions of char array brief_feeling # Rule /=/ allows 2 definitions of char array brief_feeling
# fi
$(TARGETPFX)%.o : %.c $(TARGETPFX)%.o : %.c
awk ' \ if [ x$(NOSTATICCORE) = 'x' ]; then \
BEGIN{print "#line 1 \"$<\""} \ $(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ $< ; \
/=/{print;next} \ else \
sub(/^static inline/, "") \ ( \
sub(/^static( |$$)/, "") \ $(AWK) ' \
' < $< > .$< BEGIN{print "#line 1 \"$<\""}; \
$(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ .$< /=/{print;next}; \
endif sub(/^static inline/, ""){print;next}; \
sub(/^static( |$$)/, ""){print;next}; \
{print}; \
' < $< > .$< && \
$(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ .$< ; \
) \
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.