# <sys/types.h> defines ulong_t on some systems, and it doesn't
# on others.  If yours doesn't define it, then get rid of the
# -D_HAVE_ULONG_T in the line below

CFLAGS = -D_ALL_SOURCE -D_HAVE_ULONG_T_
IFLAGS =
CC = cc

.c.o:
	$(CC) $(CFLAGS) $(IFLAGS) -c $<

all:	diskmodel

diskmodel:	diskmodel.o
	$(CC) $(CFLAGS) diskmodel.o -o diskmodel -lm

diskmodel.o:	diskmodel.c diskmodel.h

clean:
	rm -f *.o *~ core
