1# $FreeBSD$ 2 3PACKAGE= runtime 4 5LIB= cam 6SHLIBDIR?= /lib 7SRCS= camlib.c scsi_cmdparse.c scsi_all.c scsi_da.c scsi_sa.c cam.c \ 8 ata_all.c nvme_all.c smp_all.c scsi_wrap.c 9INCS= camlib.h scsi_wrap.h 10 11LIBADD= sbuf 12 13MAN= cam.3 cam_cdbparse.3 14 15WARNS?= 2 16 17MLINKS+= cam.3 cam_open_device.3 \ 18 cam.3 cam_open_spec_device.3 \ 19 cam.3 cam_open_btl.3 \ 20 cam.3 cam_open_pass.3 \ 21 cam.3 cam_close_device.3 \ 22 cam.3 cam_close_spec_device.3 \ 23 cam.3 cam_getccb.3 \ 24 cam.3 cam_send_ccb.3 \ 25 cam.3 cam_freeccb.3 \ 26 cam.3 cam_path_string.3 \ 27 cam.3 cam_device_dup.3 \ 28 cam.3 cam_device_copy.3 \ 29 cam.3 cam_get_device.3 \ 30 cam_cdbparse.3 csio_build.3 \ 31 cam_cdbparse.3 csio_build_visit.3 \ 32 cam_cdbparse.3 csio_decode.3 \ 33 cam_cdbparse.3 csio_decode_visit.3 \ 34 cam_cdbparse.3 buff_decode.3 \ 35 cam_cdbparse.3 buff_decode_visit.3 \ 36 cam_cdbparse.3 csio_encode.3 \ 37 cam_cdbparse.3 csio_encode_visit.3 \ 38 cam_cdbparse.3 buff_encode_visit.3 39 40.PATH: ${SRCTOP}/sys/cam \ 41 ${SRCTOP}/sys/cam/ata \ 42 ${SRCTOP}/sys/cam/nvme \ 43 ${SRCTOP}/sys/cam/mmc \ 44 ${SRCTOP}/sys/cam/scsi 45 46CFLAGS+= -I${.CURDIR} -I${SRCTOP}/sys 47 48SHLIB_MAJOR= 7 49 50.include <src.opts.mk> 51 52HAS_TESTS= 53SUBDIR.${MK_TESTS}+= tests 54 55.include <bsd.lib.mk> 56