Added the scsi2sd-config utility, and updated firmware to suit.
[SCSI2SD.git] / software / scsi2sd-config / Makefile
1 all: build/scsi2sd-config
2
3 CFLAGS += -Wall
4
5 UNAME_S := $(shell uname -s)
6 ifeq ($(UNAME_S),Linux)
7 HID_C = ../bootloaderhost/hidapi/linux/hid.c
8 LDFLAGS += -ludev
9 endif
10 ifeq ($(UNAME_S),Darwin)
11 # Should match OSX
12 HID_C = ../bootloaderost/hidapi/mac/hid.c
13 LDFLAGS += -framework IOKit -framework CoreFoundation
14 endif
15
16
17 build/scsi2sd-config: main.c $(HID_C) $(CYAPI)
18 mkdir -p $(dir $@)
19 $(CC) $(CFLAGS) -I ../bootloaderhost/hidapi/hidapi $^ $(LDFLAGS) -o $@
20
21 clean:
22 rm build/scsi2sd-config