#
# Use this makefile with the command
#   c:\mingw\bin\mingw32-make
#
CC = c:\mingw\bin\gcc
CFLAGS = -c -g -Wall -fverbose-asm -Wa,-a,-adhlns=$*.asm

# This special target is needed because obj is not a "known suffix" in Unix.
.SUFFIXES: .obj

all: cu1.exe

cu1.exe: cu1.obj cu2.obj cu3.obj
	$(CC) -o cu1.exe cu1.obj cu2.obj cu3.obj

# Use a simple suffix rule to make the obj files.
# See Section 11.7 of "GNU Make Manual"
# 08 July 2002, GNU make Version 3.80.
.c.obj:
	$(CC) $(CFLAGS) -o $@ $<

# delete only the files that we made
clean:
	cmd /c del cu1.obj cu2.obj cu3.obj
	cmd /c del cu1.asm cu2.asm cu3.asm
	cmd /c del cu1.exe
