1# $Id: Makefile,v 1.11 2002/10/01 22:32:58 rowan Exp $ 2 3CC = cc 4CFLAGS = ${OPT} ${DBG} 5OPT = -O4 6#DBG = -g -DDEBUG=2 7 8# Recommended extra options for gcc: 9#OPT += -fomit-frame-pointer -fforce-addr -finline-functions -funroll-loops 10#OPT += -mcpu=i686 -march=i686 11#DBG += -W -Wall -pedantic -ansi 12 13LD = 14EXECUTABLES = exhaust 15 16all: ${EXECUTABLES} 17 18exhaust: sim.o asm.o pspace.o exhaust.c 19 ${CC} ${CFLAGS} -o exhaust sim.o asm.o pspace.o exhaust.c ${LD} 20 21asm.o: asm.c 22 ${CC} ${CFLAGS} -c asm.c 23 24pspace.o: pspace.c 25 ${CC} ${CFLAGS} -c pspace.c 26 27sim.o: sim.c 28 ${CC} ${CFLAGS} -c sim.c 29 30clean: 31 rm -f *~ *.o core ${EXECUTABLES} 32