Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

make

Posted on 2003-02-25
7
Medium Priority
?
173 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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
Suggested Courses

581 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