![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Make utility - some Qs togurus.. | alex_5161 | SUN Solaris | 0 | 01-30-2007 09:17 AM |
| is there kind of good utility that convert make files to dsp? | umen | UNIX for Dummies Questions & Answers | 1 | 10-04-2006 04:09 PM |
| Make utility | bigmoon | SUN Solaris | 2 | 10-10-2005 05:48 PM |
| Make utility | victorvvk | High Level Programming | 4 | 06-24-2005 09:40 PM |
| Using make utility to create an mini-app | Yifan_Guo | High Level Programming | 1 | 03-19-2005 02:35 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
MAKE utility
I wrote a makefile, every thing is working fine,
But One of the C header files which is created by me is kept in a different folder other than the current directory, I have given this PATH to VPATH Variable Example :- VPATH = /home/user1/projects/victor.h It gives an error as : file not found This is the defination of VPATH is The value of the make variable VPATH specifies a list of directories that make should search. What basically i want is, how do i specify make to search for the file in the path which i have specified in the VPATH. what is the correct syntax for specifying the value in the VPATH Regards Victor Vinod |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
VPATH=/home/user1/projects
|
|
#3
|
|||
|
|||
|
make utility
Hi jim ,
its great its working fine with the path specified in the VPATH variable now when i run make it is giving the following error. [user1@scmtest mk4]$ make cc -c main.c cc -c sec.o cc: sec.o: No such file or directory cc: no input files make: *** [sec.o] Error 1 [user1@scmtest mk4]$ The contents of makefile is PHP Code:
PHP Code:
PHP Code:
even though sec.o is existing it says cc: sec.o: No such file or directory but when i compile and create the sec.o separately , it is working fine. with the following error message cc -o myfile main.o sec.o this means the next rule after stdio.h statement is not bieng executed. if i create the obj file seperately it is working fine My Question is 1) is it possible to include stdio.h file in the make without including it in the source code file.? Thanks Jim Regards Victor vinod Last edited by victorvvk; 06-27-2005 at 09:28 PM. Reason: added twice |
|
#4
|
|||
|
|||
|
Quote:
change the last line of your makefile as cc -c sec.c |
|
#5
|
|||
|
|||
|
Thanks you very much
even after the change it is still giving the same problem regards victor vinod kumar |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|