Merge Powerbook pcb updates
[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 = ../bootloaderhost/hidapi/mac/hid.c
13 LDFLAGS += -framework IOKit -framework CoreFoundation
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
16 endif
17
18
19 build/scsi2sd-config: main.c $(HID_C) $(CYAPI)
20 mkdir -p $(dir $@)
21 $(CC) $(CFLAGS) -I ../bootloaderhost/hidapi/hidapi $^ $(LDFLAGS) -o $@
22
23 clean:
24 rm build/scsi2sd-config