MC3302_SDK_V1.1.9_202507281.../media/sample/modules/tde/Makefile.linux

38 lines
772 B
Makefile
Raw Normal View History

2025-11-11 04:08:31 +00:00
include ../../Makefile.param
MPI_LIBS := $(REL_LIB)/libmpi.a
# target source
TEST_SRC := tde_test.c
TEST_OBJ := tde_test.o
TEST_APP := tde_test
PERM_SRC := tde_performace.c
PERM_OBJ := tde_performace.o
PERM_APP := tde_performace
.PHONY : clean all
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<
.cpp.o:
$(CC) -c $(CFLAGS) -o $@ $<
all: $(TEST_APP) $(PERM_APP)
$(TEST_APP): $(TEST_OBJ)
$(CC) -o $@ $(CFLAGS) $(TEST_OBJ) $(MPI_LIBS) -lpthread -lm -ldl
cp $(TEST_APP) $(REL_TEST)/
cp *.sh $(REL_TEST)/
@mkdir -p $(REL_TEST)/res/
cp ./res/* $(REL_TEST)/res/
$(PERM_APP): $(PERM_OBJ)
$(CC) -o $@ $(CFLAGS) $(PERM_OBJ) $(MPI_LIBS) -lpthread -lm -ldl
cp $(PERM_APP) $(REL_TEST)/
clean:
@rm -f $(TEST_OBJ)
@rm -f $(TEST_APP)
@rm -f $(PERM_OBJ)
@rm -f $(PERM_APP)