mirror of
https://github.com/sharkcz/rkdeveloptool.git
synced 2024-11-22 14:06:47 +01:00
76af099afc
Signed-off-by: liuyi <liuyi@rock-chips.com>
25 lines
571 B
Makefile
25 lines
571 B
Makefile
# Simple Makefile for RK Flash Tool
|
|
|
|
CC = g++
|
|
LD = $(CC)
|
|
CXXFLAGS = -O2 -Wall -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -I/usr/local/include/libusb-1.0
|
|
LDFLAGS = -L/usr/local/lib -Wl,-Bstatic -lusb-1.0 -Wl,-Bdynamic -lrt -lpthread
|
|
|
|
|
|
PROGS = $(patsubst %.cpp,%.o, $(wildcard *.cpp))
|
|
|
|
rkDevelopTool: $(PROGS)
|
|
$(CC) $(CXXFLAGS) $^ -o rkDevelopTool $(LDFLAGS)
|
|
|
|
install: $(PROGS)
|
|
install -d -m 0755 /usr/local/bin
|
|
install -m 0755 ./rkDevelopTool /usr/local/bin
|
|
|
|
clean:
|
|
rm $(PROGS) ./rkDevelopTool
|
|
|
|
uninstall:
|
|
cd /usr/local/bin && rm -f ./rkDevelopTool
|
|
|
|
|