usbboot/Makefile
Pierre Pronchery 878bf1d2e9 Use pkg-config to locate libusb-1.0
This fixes the build on NetBSD (still requires GNU make though).
2017-10-19 16:16:40 +02:00

18 lines
409 B
Makefile
Executable File

CFLAGS = -Wall -Wextra -g `pkg-config --cflags libusb-1.0`
LDFLAGS = `pkg-config --libs libusb-1.0`
rpiboot: main.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
uninstall:
rm -f /usr/bin/rpiboot
rm -f /usr/share/rpiboot/usbbootcode.bin
rm -f /usr/share/rpiboot/msd.elf
rm -f /usr/share/rpiboot/buildroot.elf
rmdir --ignore-fail-on-non-empty /usr/share/rpiboot/
clean:
rm -f rpiboot
.PHONY: uninstall clean