rockbox/utils/scsi/Makefile
Amaury Pouly ae84354b40 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
2017-01-07 15:52:33 +01:00

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)