multimedia/device/mpp/sample/venc/Makefile

36 lines
930 B
Makefile

# Hisilicon Hi3516 sample Makefile
include ../Makefile.param
# target source
SRC := $(wildcard *.c)
OBJ := $(SRC:%.c=%.o)
TARGET := sample_venc
.PHONY : clean all
#$(warning target object is $(TARGET))
#$(warning comm object is $(arm-hisiv300-linux-gcc -MM sample_venc.c))
#all: $(OBJ) $(TARGET)
#$(OBJ): %.o: %.c $(COMM_OBJ)
# $(CC) -MM -c $(CFLAGS) $< -o $@ $(MPI_LIBS) $(AUDIO_LIBA) $(SENSOR_LIBS)
main: $(OBJ) $(MPI_LIBS) $(AUDIO_LIBA) $(SENSOR_LIBS) $(COMM_OBJ)
$(CC) -o main $(CFLAGS) -lpthread -lm -g -rdynamic $(OBJ) $(COMM_OBJ) $(MPI_LIBS) $(AUDIO_LIBA) $(SENSOR_LIBS)
.depend: $(SRC)
@$(CC) -MM $(SRC) > $@
sinclude .depend
TARGET:
arm-hisiv300-linux-ld $(CFLAGS) -lpthread -lm -o ${TARGET} $@ $^ $(MPI_LIBS) $(AUDIO_LIBA) $(SENSOR_LIBS) $(OBJ) $(COMM_OBJ) $(OBJ)
clean:
@rm -f $(TARGET)
@rm -f $(OBJ)
@rm -f $(COMM_OBJ)
cleanstream:
@rm -f *.h264
@rm -f *.jpg
@rm -f *.mjp
@rm -f *.mp4