BaiduAIFaceDetection/Makefile

23 lines
346 B
Makefile
Raw Permalink Normal View History

2022-09-22 15:43:38 +08:00
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)