From 45a601e2da73abeeda30e0cf33c73e0033e733b0 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 7 Dec 2024 12:14:41 -0800 Subject: [PATCH] Improve next/Makefile.example Remove the install rule as that's included in 1337.mk. Remove the indent.c rule as that's included in 1337.mk. Add to make clobber removal of *.dSYM. Removed -g3 from OPT variable. This is more useful in macOS but with optimised code debug symbols are not nearly as useful anyway. --- next/Makefile.example | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/next/Makefile.example b/next/Makefile.example index 1f1bf0bd06..37a03df31f 100644 --- a/next/Makefile.example +++ b/next/Makefile.example @@ -86,7 +86,7 @@ COTHER= # Optimization # -OPT= -O3 -g3 +OPT= -O3 # Default flags for ANSI C compilation # @@ -181,11 +181,12 @@ everything: all alt @${TRUE} -# one suggested way to run the program +# suggested way(s) to run the program # try: ${PROG} ${DATA} @# remove these comments @# notice how we do not assume that . is a component of the $PATH environment variable + @# you may use the try.sh script if you have one @# change this next line as needed ./${PROG} some arguments @@ -202,37 +203,12 @@ clean: fi clobber: clean - ${RM} -f ${TARGET} + ${RM} -f ${TARGET} *.dSYM @-if [[ -e sandwich ]]; then \ ${RM} -f sandwich; \ echo 'ate sandwich'; \ fi -# Do not install prog, please! -# -install: - @echo "Dr. Spock says that is not logical!" - @${TRUE} - -# you may be able to misunderstand the source by reading indent.c -# -indent.c: ${PROG}.c - @if which "${GINDENT}" >/dev/null 2>&1; then \ - echo ${RM} -f $@; \ - ${RM} -f $@; \ - echo "${GINDENT} < $< > $@"; \ - ${GINDENT} < $< > $@; \ - elif which "${INDENT}" >/dev/null 2>&1; then \ - echo ${RM} -f $@; \ - ${RM} -f $@; \ - echo "${INDENT} < $< > $@"; \ - ${INDENT} < $< > $@; \ - else \ - echo "no indent tool found, ident $< yourself, sorry"; \ - echo "exit 17"; \ - exit 17; \ - fi - ###################################### # optional include of 1337 hacker rulz