13c7f482ce
This is essentially an expanded version of jz4760_tools/usbboot, able to support both X1000 and JZ4760 CPUs and easily extended to handle other Ingenic CPUs using the same boot protocol. Change-Id: I70ce3acc3531d65390c6bbae4d2b3352140acf0a
14 lines
244 B
Makefile
14 lines
244 B
Makefile
DEFINES=
|
|
CC?=gcc
|
|
CFLAGS=-g -std=c99 -Wall $(DEFINES) `pkg-config --cflags libusb-1.0`
|
|
LDFLAGS=`pkg-config --libs libusb-1.0`
|
|
SRC=$(wildcard *.c)
|
|
EXEC=$(SRC:.c=)
|
|
|
|
all: $(EXEC)
|
|
|
|
%: %.c
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -fr $(EXEC)
|