diff --git a/BaiduAIFaceDetection.o b/BaiduAIFaceDetection.o new file mode 100644 index 0000000..fcbbccc Binary files /dev/null and b/BaiduAIFaceDetection.o differ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e8874c2 --- /dev/null +++ b/Makefile @@ -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) +