Fix typo in scsi2sd-config Makefile for building on Mac OSX
[SCSI2SD-V6.git] / software / scsi2sd-config / Makefile
CommitLineData
7193c6f2
MM
1all: build/scsi2sd-config
2
3CFLAGS += -Wall
4
5UNAME_S := $(shell uname -s)
6ifeq ($(UNAME_S),Linux)
7 HID_C = ../bootloaderhost/hidapi/linux/hid.c
8 LDFLAGS += -ludev
9endif
10ifeq ($(UNAME_S),Darwin)
11 # Should match OSX
890106c8 12 HID_C = ../bootloaderhost/hidapi/mac/hid.c
7193c6f2
MM
13 LDFLAGS += -framework IOKit -framework CoreFoundation
14endif
15
16
17build/scsi2sd-config: main.c $(HID_C) $(CYAPI)
18 mkdir -p $(dir $@)
19 $(CC) $(CFLAGS) -I ../bootloaderhost/hidapi/hidapi $^ $(LDFLAGS) -o $@
20
21clean:
22 rm build/scsi2sd-config