LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-02-2013, 09:13 AM   #1
iruhdam
LQ Newbie
 
Registered: Apr 2013
Posts: 6

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No rule to make target `w'. Stop vithre Solaris / OpenSolaris 1 12-06-2012 03:42 PM
[SOLVED] make: *** No rule to make target `main.c', needed by `main.o'. Stop. renjith007 Linux - Newbie 3 02-07-2012 02:08 AM
[SOLVED] No rule to make target 'Markup.cpp', needed by `Markup.o'. Stop. shamjs Programming 11 12-10-2011 11:51 AM
Error in Makefile:No rule to make target `g++',needed by... stop karthik.c Programming 5 03-09-2009 01:55 AM
No rule to make target `/mkspecs/default/qmake.conf', needed by `Makefile'. Stop Julianus Linux - General 0 12-21-2003 08:17 AM


All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration