?
Solved

make

Posted on 2003-02-25
7
Medium Priority
?
170 Views
Last Modified: 2010-04-15
huh...I have got a complex code to study and use it and i am finding it very difficult to understand someone elses code. Its better to write my own code i think...anyway..

There are 8 subprograms in the directory namely,
flow_modeller.c, menues.c, in_and_out.c, opti.c, data_manip.c, splines.c, plotten.c and calc.c.

There is a make file which reads aas...

CC = gcc
DEBUG = -g
OPTIMZE = -O3
CFLAGS = $(OPTIMZE)
MAKE = makeflow

EXE = flow_modeller
LIB = -lm
END = /usr/lib/end.o
OBJ = flow_modeller.o menues.o in_and_out.o opti.o data_manip.0 splines.o plotten.o calc.o

$(EXE):    $(OBJ) #link.
               $(CC) -o $(EXE) $(OBJ) $(LIB)
$(OBJ):      $(MAKE) $(DEF)
 
When i make the file now!

prompt:>makeflow
it gives me an error

./makeflow: CC:command not found
./makeflow: DEBUG: command not found
and same for the rest of the commands aswell.

Can anyone please tell me where the problem is??

There is a tags file in the directory aswell....

Cheers,
prasad..


0
Comment
Question by:pessi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 

Expert Comment

by:kmanikonda
ID: 8015779
The make file must have the keyword :ALL: in the begining. You have to include the path of .h files in the file as ".SOURCE.h : /usr/include/SC". and now try to compile your program.
0
 

Author Comment

by:pessi
ID: 8015816
hey it still doesnt work. If you want i can send you the makefile.

thanks
prasad..
0
 

Expert Comment

by:kmanikonda
ID: 8015845
Do you want me to send any sample make file?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:pessi
ID: 8015864
If you dont mind i will send my make file just to see if all the syntax is correct! Please do send me a sample make file also.

Hey thanks a lot for helping me.

my email prasad@imm.rwth-aachen.de

Cheers,
prasad..
0
 
LVL 5

Accepted Solution

by:
Kocil earned 150 total points
ID: 8017554
LOL, do not execute that make file.
Use this

prompt> make -f makeflow

or better, rename that script as 'makefile'
You can use

prompt> make

cheer :)

0
 

Author Comment

by:pessi
ID: 8017824
Thnaks a lot! Hey i am a starter....so please excuse my stupid mistakes...

Cheers,
prasad..
0
 
LVL 5

Expert Comment

by:Kocil
ID: 8022478
Brave people learn from their own mistake :)
Thanks for the point too.

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question