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.
This commit is contained in:
Cody Boone Ferguson committed 2024-12-07 12:14:41 -08:00
1 parent a7711e6a0f
commit 45a601e2da
1 file changed
+4 -28
+4 -28
View File
@@ -86,7 +86,7 @@ COTHER=
# Optimization # Optimization
# #
OPT= -O3 -g3 OPT= -O3
# Default flags for ANSI C compilation # Default flags for ANSI C compilation
# #
@@ -181,11 +181,12 @@ everything: all alt
@${TRUE} @${TRUE}
# one suggested way to run the program # suggested way(s) to run the program
# #
try: ${PROG} ${DATA} try: ${PROG} ${DATA}
@# remove these comments @# remove these comments
@# notice how we do not assume that . is a component of the $PATH environment variable @# 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 @# change this next line as needed
./${PROG} some arguments ./${PROG} some arguments
@@ -202,37 +203,12 @@ clean:
fi fi
clobber: clean clobber: clean
${RM} -f ${TARGET} ${RM} -f ${TARGET} *.dSYM
@-if [[ -e sandwich ]]; then \ @-if [[ -e sandwich ]]; then \
${RM} -f sandwich; \ ${RM} -f sandwich; \
echo 'ate sandwich'; \ echo 'ate sandwich'; \
fi 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 # optional include of 1337 hacker rulz