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..
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..
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.
ASKER
hey it still doesnt work. If you want i can send you the makefile.
thanks
prasad..
thanks
prasad..
Do you want me to send any sample make file?
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..
Hey thanks a lot for helping me.
my email prasad@imm.rwth-aachen.de
Cheers,
prasad..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thnaks a lot! Hey i am a starter....so please excuse my stupid mistakes...
Cheers,
prasad..
Cheers,
prasad..
Brave people learn from their own mistake :)
Thanks for the point too.
Thanks for the point too.