LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No Rule to target DVA/DVA_Tag.cpp needed by DVA_Tag.o .Stop. (https://www.linuxquestions.org/questions/linux-newbie-8/no-rule-to-target-dva-dva_tag-cpp-needed-by-dva_tag-o-stop-4175468163/)

iruhdam 07-02-2013 09:13 AM

No Rule to target DVA/DVA_Tag.cpp needed by DVA_Tag.o .Stop.
 
Hi Everyone,

My Project structure is something like this.

src/ETP/EVS/DVA

Under DVA i have .cpp and .h files

The problem is when i give make clean under EVS and do make install i get an error like below

"No Rule to target DVA/DVA_Tag.cpp needed by DVA_Tag.o .Stop"

But when i do same make clean and make install under DVA directly,it compiles fine.

This is how the DVA Makefile looks:

IDL_SRCS = \
./DVA_TagMgrCORBAInterface.idl

CORBA_SRCS = \
./DVA_TagMgrCORBAInterfaceS.cpp


SRCS = \
DVA_Tag.cpp \
DVA_TagManager.cpp \
DVA_TagMgrCORBAInterfaceImpl.cpp \
DVA_TagMgrServer.cpp \
DVA_TagManagerServerEDS.cpp

TEST_SRCS = EVS_TreeNodeTest_App.cpp

### Name of executable or (shared object) library to build
# NB AIX lib names will be "lib*.a", SunOS names will be "lib*.so(.1)"
TARGET = libDVA.so
TEST_TARGET = EVS_TreeNodeTest_App

### Dependency files
ifeq ($(EDGE_ARCH),AIX)
DEPS = $(SRCS:.cpp=.u)
TEST_DEPS = $(TEST_SRCS:.cpp=.u)
else # SunOS/Linux
DEPS = $(SRCS:.cpp=.d)
#DEPS=
TEST_DEPS = $(TEST_SRCS:.cpp=.d)
endif

#IDL_GEND_SRCS = $(IDL_SRCS:.idl=.cpp)

### Object files
OBJS = $(SRCS:.cpp=.o)
CORBA_OBJS = $(CORBA_SRCS:.cpp=.o)
TEST_OBJS = $(TEST_SRCS:.cpp=.o)

### Files to be removed during "make clean" - only if they don't match the
# standard "lib*.a *.o *.u *.i" patterns
CLEAN_TARGETS = clean_DVA
# Because of a bad design decision a while ago, we are forced to take special measures to clean
# badly placed child directories
CLEAN = $(TEST_OBJS) $(TEST_TARGET) ./*.o ./DVA_TagMgrCORBAInterfaceS.* ./DVA_TagMgrCORBAInterfaceS_T.* ./DVA_TagMgrCORBAInterfaceC.* ./*.d ./*.u ./*.so

####################### Target definitions ####################################
# Targets which don't create files of the same name as themselves
.PHONY: all clean install

.NOTPARALLEL all: $(TARGET)


# Important not to fail here, since clean is not a critical target.
# Hence, "-" before command.


test: $(TEST_TARGET)
ifeq ($(EDGE_ARCH),Linux)

$(TARGET): ${CORBA_OBJS} ${OBJS}
@echo "Linking for Linux $(TARGET)"
$(CXX) $(LDFLAGS) -o $(TARGET) ${CORBA_OBJS} ${OBJS} \
$(SMART_HEAP_LIBS) \
$(ACE_LIBS) \
$(TAO_LIBS) \
$(EFL_LIBS) \
$(STDCC_LIBS)
endif
.NOTPARALLEL install: $(TARGET)
cp $(TARGET) ${EDGE_LIB_DIR}

$(TEST_TARGET): $(TARGET) $(TEST_DEPS) ${CORBA_OBJS} $(TEST_OBJS)
@echo "Linking $(TEST_TARGET)"
$(CXX) $(LDFLAGS) $(TEST_OBJS) -o $(TEST_TARGET) \
$(SMART_HEAP_LIBS) \
$(ACE_LIBS) \
$(TAO_LIBS) \
$(EFL_LIBS) \
$(STDCC_LIBS)


clean_DVA:
-/bin/rm -rf ./SunWS_cache



Please suggest me on this.From EVS i want to compile successfully


All times are GMT -5. The time now is 06:31 PM.