summaryrefslogtreecommitdiffstats
path: root/utils/scsi/Makefile
blob: 2591bf2416375ebba5d8f04d7281b5fb671fbde5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)