37 lines
631 B
Makefile
37 lines
631 B
Makefile
# Hisilicon Hi3516 sample Makefile
|
|
|
|
include ../Makefile.param
|
|
#ifeq ($(SAMPLE_PARAM_FILE), )
|
|
# SAMPLE_PARAM_FILE:=../Makefile.param
|
|
# include $(SAMPLE_PARAM_FILE)
|
|
#endif
|
|
|
|
# target source
|
|
SRC := $(wildcard *.c)
|
|
OBJ := $(SRC:%.c=%.o)
|
|
|
|
TARGET := $(OBJ:%.o=%)
|
|
.PHONY : clean all
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
MPI_LIBS += $(REL_LIB)/libmpi.a
|
|
MPI_LIBS += $(REL_LIB)/libive.a
|
|
|
|
|
|
$(TARGET):%:%.o $(COMM_OBJ)
|
|
$(CC) $(CFLAGS) -lpthread -lm -o $@ $^ $(MPI_LIBS) $(AUDIO_LIBA) $(SENSOR_LIBS)
|
|
|
|
clean:
|
|
@rm -f $(TARGET)
|
|
@rm -f $(OBJ)
|
|
@rm -f $(COMM_OBJ)
|
|
|
|
cleanstream:
|
|
@rm -f *.raw
|
|
@rm -f *.adpcm
|
|
@rm -f *.g726
|
|
@rm -f *.g711a
|
|
@rm -f *.g711u
|