--- detex-2.8/Makefile.orig 2012-03-02 19:08:01.000000000 -0500 +++ detex-2.8/Makefile 2012-03-02 19:11:53.000000000 -0500 @@ -67,13 +67,13 @@ # Add -DNO_MALLOC_DECL if your system does not like the malloc() declaration # in detex.l (reported by pinard@iro.umontreal.ca) # -#DEFS += ${DEFS} -DNO_MALLOC_DECL +DEFS := ${DEFS} -DNO_MALLOC_DECL # -CFLAGS = -O ${DEFS} +CFLAGS = -O -std=c89 -Wno-return-type ${DEFS} # Use your favorite lexical scanner # -LEX = lex +LEX = flex #LEX = flex #LFLAGS = -8 -C @@ -122,9 +122,9 @@ # this target install: detex rm -f ${DESTDIR}/detex - install -c -m 775 -o binary -g staff -s detex ${DESTDIR} -# rm -f ${DESTDIR}/delatex -# ln ${DESTDIR}/detex ${DESTDIR}/delatex + install -c -m 775 -s detex ${DESTDIR} + rm -f ${DESTDIR}/delatex + ln ${DESTDIR}/detex ${DESTDIR}/delatex clean: -rm -f a.out core *.s *.o ERRS errs .,* .emacs_[0-9]*