Merge Powerbook pcb updates
[SCSI2SD.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 13 LDFLAGS += -framework IOKit -framework CoreFoundation
2bad7c0d
MM
14 CFLAGS += -mmacosx-version-min=10.5 -arch x86_64 -arch i386 -arch ppc -isysroot /Xcode3.1.4/SDKs/MacOSX10.5.sdk
15 CC = /Xcode3.1.4/usr/bin/gcc
7193c6f2
MM
16endif
17
18
19build/scsi2sd-config: main.c $(HID_C) $(CYAPI)
20 mkdir -p $(dir $@)
21 $(CC) $(CFLAGS) -I ../bootloaderhost/hidapi/hidapi $^ $(LDFLAGS) -o $@
22
23clean:
24 rm build/scsi2sd-config