[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
help me
From: |
wandze |
Subject: |
help me |
Date: |
Wed, 27 Apr 2005 15:38:09 +0200 |
User-agent: |
Internet Messaging Program (IMP) 3.2.6 |
hello,
I'm trying to to create a makefile of this following small program.
#include <stdio.h>
main()
{
int a,b,c;
a=3;
b=5;
c=a+b;
printf("resultat = %d\n",c);
printf("test linux......\n");
}
makefile
OBJS = prg1.o
CC = gcc
CFLAGS = -wall -g
all : $(OBJS) $(CC) $(OBJS) -o prg.exe
prg1.o : prg1.c $(CC) $(FLAGS) -c prg1.c -o prg1.o
main.o : main.c $(CC) $(CFLAGS) -c main.c -o main.o
clean: rm -f core *.o
When I do the make, I get following error :
make: *** No rule to make target `gcc', needed by `prg1.o'. Stop.
does anyone know if/where I can get these rule(s) ?
greetings
will
----------------------------------------------------------------
Groupe E.S.I.E.A.
www.esiea.fr