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)