From ae84354b4062e4c4ceb3ce402468d6c095a760c2 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 3 Jan 2017 22:19:24 +0100 Subject: Add multiplatform library for raw SCSI commands Several tools need to perform raw SCSI commands, and we need to support Linux, Windows and Mac OS, without pulling tons of dependencies to build it easily. This very simple library has no dependency and supports Linux. TODO: - windows - mac os Change-Id: I496f5ad2490bd3e96ad962d31cce4e511a523c3a --- utils/scsi/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 utils/scsi/Makefile (limited to 'utils/scsi/Makefile') diff --git a/utils/scsi/Makefile b/utils/scsi/Makefile new file mode 100644 index 0000000000..2591bf2416 --- /dev/null +++ b/utils/scsi/Makefile @@ -0,0 +1,17 @@ +PREFIX?= +CC=$(PREFIX)gcc +AR=$(PREFIX)ar +CFLAGS=-g -std=c99 -Wall +BINS=librbscsi.a +ARFLAGS=rcs + +all: $(BINS) + +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< + +librbscsi.a: rbscsi.o + $(AR) $(ARFLAGS) -o $@ $^ + +clean: + rm -fr *.o $(BINS) -- cgit v1.2.3