# $Id: Makefile,v 1.11 2002/10/01 22:32:58 rowan Exp $ CC = cc CFLAGS = ${OPT} ${DBG} OPT = -O4 #DBG = -g -DDEBUG=2 # Recommended extra options for gcc: #OPT += -fomit-frame-pointer -fforce-addr -finline-functions -funroll-loops #OPT += -mcpu=i686 -march=i686 #DBG += -W -Wall -pedantic -ansi LD = EXECUTABLES = exhaust all: ${EXECUTABLES} exhaust: sim.o asm.o pspace.o exhaust.c ${CC} ${CFLAGS} -o exhaust sim.o asm.o pspace.o exhaust.c ${LD} asm.o: asm.c ${CC} ${CFLAGS} -c asm.c pspace.o: pspace.c ${CC} ${CFLAGS} -c pspace.c sim.o: sim.c ${CC} ${CFLAGS} -c sim.c clean: rm -f *~ *.o core ${EXECUTABLES}