Bonjour
J'ai un makefile pour une bibliothèque graphique Ada que j'ai pris sur le net
et quand je tape make il me met une erreur :
Etant débutant dans les makefiles, je comprend pas trop ce qu'il veut...make: *** No rule to make target `graphc.c', needed by `graphc.o'. Stop.
voici le makefile en question...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 DESTDIR=$(HOME)DESTINC=$(DESTDIR)/include DESTLIB=$(DESTDIR)/lib LIB=-lX11 CC=gcc -c $(FLAGS) LDARGS=-largs graphc.o -largs -lX11 $(LDFLAG) FLAGS=-g all : gtest graphc.o: graphc.c graphc.h $(CC) graphc.c -o graphc.o gtest : graphc.o gtest.adb graph.adb graph.ads adamake gtest $(LDARGS) test : gtest ./gtest clean: rm -f *.o veryclean : clean rm -f gtest
Partager