c90d42dcc6
Although the jz4740 contains a similar tool to usbboot, its command-line interface is not very useful, also it does not compile by default because it relies on some external code, and it contains code specific to some JZ4740 devices. Change-Id: I22688238d147e21fb0fd524466b333b6003d4ff1
21 lines
379 B
Makefile
21 lines
379 B
Makefile
DEFINES=
|
|
CC?=gcc
|
|
CXX?=g++
|
|
LD?=g++
|
|
CFLAGS=-g -std=c99 -Wall $(DEFINES) `pkg-config --cflags libusb-1.0`
|
|
CXXFLAGS=-g -Wall $(DEFINES)
|
|
LDFLAGS=`pkg-config --libs libusb-1.0`
|
|
SRC=$(wildcard *.c)
|
|
SRCXX=$(wildcard *.cpp)
|
|
EXEC=$(SRC:.c=) $(SRCXX:.cpp=)
|
|
|
|
all: $(EXEC)
|
|
|
|
%: %.c
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
%: %.cpp
|
|
$(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -fr $(EXEC)
|