NOSHARED=1

SRCS= \
	scsicmd.c \
	encode.c \
	misc.c \
	mode_edit.c \
	scsiopt.c \
	scsi.c \
	scsicap.c \
	scsireq.c \
	scsiserver.c \
	scsistyle.c

HDRS= \
	scsi.h \
	scsicap.h \
	scsicmd.h \
	scsimode.h \
	scsiopt.h \
	scsiserver.h \
	scsistyle.h

PROG = scsinew

# ntohs generates this warning:
# "ANSI C forbids braced-groups within expressions"
# and so I have to disable Werror for now.
#WERROR=-Werror

COPTS = $(WERROR) \
	-Wall -ansi -pedantic \
   	-Wbad-function-cast \
	-Wcast-align \
	-Wcast-qual \
	-Wchar-subscripts \
	-Winline \
	-Wmissing-declarations \
	-Wmissing-prototypes \
	-Wnested-externs \
	-Wpointer-arith \
	-Wshadow \
	-Wstrict-prototypes \
	-Wwrite-strings

DEBUG_FLAGS = -g

CFLAGS+=-DSCSICAP_TEST

CLEANFILES+=scsinew.tgz scsinew.uu scsinew[0-9].tgz scsinew[0-9].uu

.include <bsd.prog.mk>

REL=8

rel:
	tar cvzf ./scsinew$(REL).tgz  README $(SRCS) \
	$(HDRS) \
	scsi.3 scsi.8 makefile zones.wish caps
	uuencode  scsinew$(REL).tgz < scsinew$(REL).tgz > scsinew$(REL).uu

ci:	ci.txt
	ci -u README $(SRCS) \
	$(HDRS) \
	scsi.3 scsi.8 makefile zones.wish caps < ci.txt
