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