blob: 2591bf2416375ebba5d8f04d7281b5fb671fbde5 [file] [log] [blame]
Amaury Poulyae843542017-01-03 22:19:24 +01001PREFIX?=
2CC=$(PREFIX)gcc
3AR=$(PREFIX)ar
4CFLAGS=-g -std=c99 -Wall
5BINS=librbscsi.a
6ARFLAGS=rcs
7
8all: $(BINS)
9
10%.o: %.c
11 $(CC) $(CFLAGS) -c -o $@ $<
12
13librbscsi.a: rbscsi.o
14 $(AR) $(ARFLAGS) -o $@ $^
15
16clean:
17 rm -fr *.o $(BINS)