who fixed my make file?

From: somez72 (rambo_at_lsdata.co.kr)
Date: 08/17/04


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)



Relevant Pages

  • Re: Want to compile my roguelike
    ... you don't need a makefile with lcc-win32. ... The aboove applies to compiling Vanilla Angband 3.0.6 on my ... Cosmic Gerbil ... I've been working nearly all day trying to compile. ...
    (rec.games.roguelike.angband)
  • Re: problem compiling sample drivers
    ... Then I wanted to compile the sample drivers, ... NMAKE: fatal error U1064: MAKEFILE not found and no target specified ...
    (microsoft.public.development.device.drivers)
  • Re: problem compiling sample drivers
    ... Then I wanted to compile the sample drivers, ... NMAKE: fatal error U1064: MAKEFILE not found and no target specified ...
    (microsoft.public.development.device.drivers)
  • Re: problem compiling sample drivers
    ... Then I wanted to compile the sample drivers, to test if everything is ok. ... NMAKE: fatal error U1064: MAKEFILE not found and no target specified ...
    (microsoft.public.development.device.drivers)
  • Re: problem compiling sample drivers
    ... Then I wanted to compile the sample drivers, to test if everything is ok. ... NMAKE: fatal error U1064: MAKEFILE not found and no target specified ...
    (microsoft.public.development.device.drivers)