CFLAGS	= -g -O -Wall
LDFLAGS	= -g -O

# Enable this line if your system doesn't have the /usr/include/scsi symlink
# yet:
CFLAGS += -I/usr/src/linux/include

# Enable this line if the CCD_LD scsi command returns bad values.
CFLAGS += -DLINE_DISTANCE_WORKAROUND

OBJS	= mscan.o msci.o scsi.o

mscan: $(OBJS)

depend: .depend

distclean: clean
	rm -f mscan

clean:
	rm -f *~ *.o .depend

.depend:
	gcc $(CFLAGS) -M $(OBJS:.o=.c) > $@

-include .depend

.PHONY: .depend clean distclean
