owolablo
2006-09-19 13:14:48 UTC
Hi,
I'm following the guide in section 2.5 of APG in order to biuld a
client-server application.The application has two files so I have
copied the second Makefile example in the section mentioned above.The
code for the Makefile now looks as follows:
BIN = comnet
FILES = comnet_client comnet_server
SRC= $(addsuffix .cpp,$(FILES))
OBJ= $(addsuffix .o,$(FILES))
BUILD = $(VBIN)
LDFLAGS = -L$(ACE_ROOT)/lib
#---------------------------------------------------------
# Include macros and targets
#---------------------------------------------------------
include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU /
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
However on typing "make" in the directory containing the source files
(comnet_client.cpp,comnet_server.cpp), It gives the following 2 lines
of error:
GNUmakefile: /home/ACE_wrappers/examples/comnet/GNUmakefile MAKEFLAGS=
make: *** No rule to make target `.obj/comnet.o', needed by `comnet'.
Stop.
I'm a newby to both linux programming and ACE and I don't know what to
do.Waht could be wrong.Thank you.
I'm following the guide in section 2.5 of APG in order to biuld a
client-server application.The application has two files so I have
copied the second Makefile example in the section mentioned above.The
code for the Makefile now looks as follows:
BIN = comnet
FILES = comnet_client comnet_server
SRC= $(addsuffix .cpp,$(FILES))
OBJ= $(addsuffix .o,$(FILES))
BUILD = $(VBIN)
LDFLAGS = -L$(ACE_ROOT)/lib
#---------------------------------------------------------
# Include macros and targets
#---------------------------------------------------------
include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU /
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
However on typing "make" in the directory containing the source files
(comnet_client.cpp,comnet_server.cpp), It gives the following 2 lines
of error:
GNUmakefile: /home/ACE_wrappers/examples/comnet/GNUmakefile MAKEFLAGS=
make: *** No rule to make target `.obj/comnet.o', needed by `comnet'.
Stop.
I'm a newby to both linux programming and ACE and I don't know what to
do.Waht could be wrong.Thank you.