# This a model makefile to debug a C sequential code on Vargas. Adapted # to version 6.0 of the C compiler. CC = c89 CFLAGS = -g -qcheck -qdbxextra -qextchk -qfloat=nans -qfullpath \ -qheapdebug -qinfo=all:noobs:noppc:noppt:nouse -qlanglvl=stdc89 \ -qnooptimize -qsymtab=unref -qsymtab=static -qwarn64 # Nota bene: The diagnostic message group "ppt" is the trace of # preprocessor actions. We turn it off with the "qinfo" option. This # message group is not listed in the documentation of the C compiler, # version 6.0, as it should. This message group exists and will # produce a lot of lines if it is not turned off. (The message group # "ppt" is listed in the documentation for version 7.0 of the C # compiler.) LDFLAGS = -qextchk \ -qflttrap=overflow:underflow:zerodivide:invalid:inexact:enable name = ... executable = ${workdir}/${name} $(executable): ${name}.c $(CC) $(CFLAGS) $(LDFLAGS) $? -o $@ ${name}.i: ${name}.c $(CC) -P $? clean : rm -f ${name}.i $(executable)