]> git.donarmstrong.com Git - qmk_firmware.git/blob - protocol/lufa/LUFA-git/Bootloaders/HID/HostLoaderApp/Makefile.bsd
Squashed 'tmk_core/' changes from caca2c0..dc0e46e
[qmk_firmware.git] / protocol / lufa / LUFA-git / Bootloaders / HID / HostLoaderApp / Makefile.bsd
1 OS ?= FreeBSD
2 #OS ?= NetBSD
3 #OS ?= OpenBSD
4
5 CFLAGS ?= -O2 -Wall
6 CC ?= gcc
7
8 .if $(OS) == "FreeBSD"
9 CFLAGS += -DUSE_LIBUSB
10 LIBS =  -lusb
11 .elif $(OS) == "NetBSD" || $(OS) == "OpenBSD"
12 CFLAGS += -DUSE_UHID
13 LIBS =
14 .endif
15
16
17 hid_bootloader_cli: hid_bootloader_cli.c
18         $(CC) $(CFLAGS) -s -o hid_bootloader_cli hid_bootloader_cli.c $(LIBS)
19
20 clean:
21         rm -f hid_bootloader_cli