Hi all ,
I have the following scenario where i ma trying to build a program that has the same name as the subdir and within that subdir it needs to build and link in the those objects to create the PROG .
but GCC get all confused and complains saying that it's a directory and bombs out.
has anyone seen this befor with GCC
the PROG name is t
cc -O -DNOODBC -I/home/t/cvs/FB1023/src/include -I/usr/local64/include -I/usr/local64/include -D_PTHREADS -D_REENTRANT -DHAVE_VPRINTF -DHAVE_SYS_TIME_H -DHAVE_TERMIO_H -D_64BIT -DPOWERPC -D_GNU_SOURCE -m64 -Wall -Wno-parentheses -Wno-format -Wno-char-subscripts -DINLINE="static inline" -DBUILD_INFO="\"Developer build - not for release\"" -L/home/t/cvs/FB1023/src/lib/obj.ppc64 -L/usr/X11R6/lib64 -L /home/t/cvs/FB1023/src/lib/obj.ppc64 -L /home/t/cvs/FB1023/src/dsd/obj.ppc64 -L /usr/X11R6/lib64 -m64 -L /usr/local64/lib -L /usr/local64/lib -L /usr/local64/lib -o /home/t/cvs/FB1023/src/zap/zap /home/t/cvs/FB1023/src/zap/zap.c
/usr/bin/ld: cannot open output file /home/t/cvs/FB1023/src/zap/zap: Is a directory
collect2: ld returned 1 exit status
my dir structure is /home/t/cvs/FB1023/src/zap/zap.c
/home/t/cvs/FB1023/src/zap/zap/obj/*.o where I want to link in zap.o to produce zap program ...
My Makefile has the following
Makefile
==========
PROG=zap
SRCS= zap.c
$(CXX) $(LDFLAGS) -Wall -o $@ $(OBJS) $(NONLOCAL_OBJS)
Anyone with any ideas how i can do this in my makefile?
Thanks any help much appreciated !