添加 Makefile 文件
This commit is contained in:
parent
c3031b8da6
commit
445fe4e818
BIN
BaiduAIFaceDetection.o
Normal file
BIN
BaiduAIFaceDetection.o
Normal file
Binary file not shown.
22
Makefile
Normal file
22
Makefile
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
CROSS_COMPILE ?=
|
||||||
|
CC := $(CROSS_COMPILE)gcc
|
||||||
|
STRIP := $(CROSS_COMPILE)strip
|
||||||
|
CFLAGS += -g -Wall -Os
|
||||||
|
LDFLAGS += -lcurl -lcjson
|
||||||
|
OBJ := BaiduAIFaceDetection
|
||||||
|
|
||||||
|
all: BaiduAIFaceDetection.o
|
||||||
|
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LDFLAGS)
|
||||||
|
.c.o:
|
||||||
|
$(CC) $(CFLAGS) -c $<
|
||||||
|
|
||||||
|
install:
|
||||||
|
cp $(OBJ) /bin/
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm /bin/$(OBJ)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.o
|
||||||
|
rm $(OBJ)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user