ae84354b40
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
17 lines
225 B
Makefile
17 lines
225 B
Makefile
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)
|