Link to home
Start Free TrialLog in
Avatar of pessi
pessi

asked on

make

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..


Avatar of kmanikonda
kmanikonda

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.
Avatar of pessi

ASKER

hey it still doesnt work. If you want i can send you the makefile.

thanks
prasad..
Do you want me to send any sample make file?
Avatar of pessi

ASKER

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..
ASKER CERTIFIED SOLUTION
Avatar of Kocil
Kocil

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pessi

ASKER

Thnaks a lot! Hey i am a starter....so please excuse my stupid mistakes...

Cheers,
prasad..
Brave people learn from their own mistake :)
Thanks for the point too.