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
20 lines
270 B
Makefile
20 lines
270 B
Makefile
DEFINES=
|
|
CC=$(PREFIX)gcc
|
|
LD=$(PREFIX)gcc
|
|
CFLAGS=-g -std=c99 -W -Wall $(DEFINES)
|
|
LDFLAGS=-lsgutils2
|
|
BINS=scsitool
|
|
|
|
all: $(BINS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
scsitool: scsitool.o misc.o
|
|
$(LD) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -fr *.o
|
|
|
|
veryclean:
|
|
rm -rf $(BINS)
|