MC3302_SDK_V1.1.9_202507281.../media/sample/modules/vgs2/Makefile
2025-11-11 12:08:31 +08:00

38 lines
752 B
Makefile
Executable File

include ../../Makefile.param
MPI_LIBS := $(REL_LIB)/libmpi.a
# target source
TEST_SRC := vgs2_test.c
TEST_OBJ := vgs2_test.o
TEST_APP := vgs2_test
PERM_SRC := vgs2_performace.c
PERM_OBJ := vgs2_performace.o
PERM_APP := vgs2_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
mv $(TEST_APP) $(REL_TEST)/
cp *.sh $(REL_TEST)/
#cp ./res/* $(REL_TEST)/res/
$(PERM_APP): $(PERM_OBJ)
$(CC) -o $@ $(CFLAGS) $(PERM_OBJ) $(MPI_LIBS) -lpthread -lm -ldl
mv $(PERM_APP) $(REL_TEST)/
clean:
@rm -f $(TEST_OBJ)
@rm -f $(TEST_APP)
@rm -f $(PERM_OBJ)
@rm -f $(PERM_APP)