improve notes printed in Makefile for 1993/lmfjyh
OAlso separate `make all` from `make alt`.
This commit is contained in:
1 parent
c2438d8877
commit
c2ef29dc0a
1 file changed
+12
-12
+12
-12
@@ -129,22 +129,22 @@ all: data ${TARGET}
|
|||||||
|
|
||||||
${PROG}: ${PROG}.c
|
${PROG}: ${PROG}.c
|
||||||
@echo "NOTE: This will not compile when using modern compilers because"
|
@echo "NOTE: This will not compile when using modern compilers because"
|
||||||
@echo "it relies on a compiler bug which was fixed in gcc 2.3.3 (a very"
|
@echo "it relies on a compiler bug which was fixed in gcc 2.3.3 a very"
|
||||||
@echo "long time ago now). We will build the alt version as $@ in the very"
|
@echo "long time ago."
|
||||||
@echo "likely case this fails to compile. If however you wish to manually"
|
|
||||||
@echo "compile the alt version you should do:"
|
|
||||||
@echo
|
|
||||||
@echo " make alt"
|
|
||||||
@echo
|
|
||||||
@echo "and then run ${ALT_TARGET}."
|
|
||||||
@echo
|
@echo
|
||||||
${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
|
${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
|
||||||
${CP} lmfjyh.c \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
|
${CP} lmfjyh.c \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
|
||||||
${CC} ${CFLAGS} \
|
@echo ${CC} ${CFLAGS} \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c -o $@ ${LDFLAGS}
|
||||||
|
@${CC} ${CFLAGS} \
|
||||||
\"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c -o $@ ${LDFLAGS} || \
|
\"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c -o $@ ${LDFLAGS} || \
|
||||||
${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
|
echo && \
|
||||||
${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
|
echo "Try compiling the alt version using:" && \
|
||||||
${CC} ${CFLAGS} ${PROG}.alt.c -o $@ ${LDFLAGS}
|
echo && \
|
||||||
|
echo " make alt" && \
|
||||||
|
echo && \
|
||||||
|
echo "and then run the alternate program:" && \
|
||||||
|
echo && \
|
||||||
|
echo " ./${ALT_TARGET}"
|
||||||
|
|
||||||
# alternative executable
|
# alternative executable
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in new issue
Block a user