38 lines
712 B
Makefile
38 lines
712 B
Makefile
|
# Hisilicon Hi3516 sample Makefile
|
||
|
|
||
|
include ../Makefile.param
|
||
|
#ifeq ($(SAMPLE_PARAM_FILE), )
|
||
|
# SAMPLE_PARAM_FILE:=../Makefile.param
|
||
|
# include $(SAMPLE_PARAM_FILE)
|
||
|
#endif
|
||
|
curdir = $(shell pwd)
|
||
|
|
||
|
SENSOR_LIBS += $(curdir)/rtsp_lib/librtsp.a
|
||
|
CFLAGS += -I$(curdir)/rtsp_lib/
|
||
|
CFLAGS += -I$(curdir)/include/
|
||
|
|
||
|
# target source
|
||
|
SRC := $(wildcard *.c)
|
||
|
OBJ := $(SRC:%.c=%.o)
|
||
|
|
||
|
TARGET := $(OBJ:%.o=%)
|
||
|
.PHONY : clean all
|
||
|
|
||
|
|
||
|
|
||
|
all: $(TARGET)
|
||
|
@cd rtsp_lib; make
|
||
|
$(TARGET):%:%.o $(COMM_OBJ)
|
||
|
$(CC) $(CFLAGS) -lpthread -lm -o $@ $^ $(MPI_LIBS) $(AUDIO_LIBA) $(SENSOR_LIBS) $(INCFLAGS)
|
||
|
|
||
|
clean:
|
||
|
@rm -f $(TARGET)
|
||
|
@rm -f $(OBJ)
|
||
|
@rm -f $(COMM_OBJ)
|
||
|
|
||
|
cleanstream:
|
||
|
@rm -f *.h264
|
||
|
@rm -f *.jpg
|
||
|
@rm -f *.mjp
|
||
|
@rm -f *.mp4
|