# dmakefile
#
# designed to run on the DICE Amiga compiler
#
# written by Mark Carter 18.11.95
#
# This file is PUBLIC DOMAIN

HOME=/b2/pjr
CC=dcc
SRC=.
DCC_FLAGS= -E err.txt
CFLAGS=-c -DH_OFFSETS -DH_COMPRESS
CFILES=hd.c hexprint.c
OBJ=hd.o hexprint.o

hd:	$(OBJ)
	$(CC) $(DCC_FLAGS) $(OBJ) -o hd

inst:	hd
	cp hd $(HOME)/bin

hd.o:	hd.c hexprint.h
	delete err.txt
	$(CC) $(DCC_FLAGS) $(CFLAGS) -c hd.c

hexprint.o: hexprint.c  hexprint.h
	delete err.txt
	$(CC) $(DCC_FLAGS) $(CFLAGS) -c hexprint.c

clean :
	delete err.txt
	delete $(OBJ)
