who fixed my make file?
From: somez72 (rambo_at_lsdata.co.kr)
Date: 08/17/04
- Next message: Rouben Rostamian: "Re: who fixed my make file?"
- Previous message: John: "Re: Embedded SMTP Problems"
- Next in thread: Rouben Rostamian: "Re: who fixed my make file?"
- Reply: Rouben Rostamian: "Re: who fixed my make file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 17 Aug 2004 11:39:26 +0900
Hello.
I have proc_file.c list.c list.h in same directory.
when I compile as follows,
gcc -c proc_file.c ==> no error.
gcc -c list.c ==> no error.
I'm sure there is no error in souce file.
for convient, I made Makefile as follows.
but I always met error messge "proc_file : no file"
I don't know why.
I think The line "proc_file.o : proc_file.c list.h" in Makefiel is not
excueted.
Could someone explain? what's wrong in my Makefile.
==== simple make file ===========
CC = gcc
CFLAGS = -g -Wall
DEST=proc_file
OBJS=list.o proc_file.o
.c.o :
${CC} $(CFLAGS) -c $<
all : $(DEST)
proc_file : ${OBJS}
$(CC) -o $@ ${OBJS} $(CFLAGS)
list.o : list.c list.h
proc_file.o : proc_file.c list.h
clean :
-rm -f *.o $(DEST)
- Next message: Rouben Rostamian: "Re: who fixed my make file?"
- Previous message: John: "Re: Embedded SMTP Problems"
- Next in thread: Rouben Rostamian: "Re: who fixed my make file?"
- Reply: Rouben Rostamian: "Re: who fixed my make file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|