#
# Type 'make' with this 'makefile' file in your current directory to compile
# the BLITZ tools.  It will execute the following commands as needed, based
# on files' most-recent-update times.
# 

CC=gcc

# The "-arch ppc" flag is only needed when compiling for the MAC.
CFLAGS=-g -lm

all: asm dumpObj lddd blitz diskUtil hexdump check endian

asm: asm.c
	$(CC) $(CFLAGS) asm.c -o asm

lddd: lddd.c
	$(CC) $(CFLAGS) lddd.c -o lddd

blitz: blitz.c
	echo The 28 warnings about multichar constants are expected
	$(CC) $(CFLAGS) blitz.c -o blitz

dumpObj: dumpObj.c
	$(CC) $(CFLAGS) dumpObj.c -o dumpObj

diskUtil: diskUtil.c
	$(CC) $(CFLAGS) diskUtil.c -o diskUtil

hexdump: hexdump.c
	$(CC) $(CFLAGS) hexdump.c -o hexdump

check: check.c
	$(CC) $(CFLAGS) check.c -o check

endian: endian.c
	$(CC) $(CFLAGS) endian.c -o endian
