make Aucune règle pour fabriquer la cible
Bonjour à tous,
GNU Make 4.2.1
#make: *** Aucune règle pour fabriquer la cible «*x86_64-w64-mingw32-gcc-7.3.0.exe*»,
nécessaire pour «*out/test.o*». Arrêt.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
DPROJ = /cygdrive/c/JPD/C/devProjects/make_example
DOUT = out
SRCDIR = src
BIN = $(DOUT)/test.exe
OBJS = $(DOUT)/test.o $(DOUT)/test2.o $(DOUT)/test3.o
DEPS = inc/test.h
INCLUDES = -I$(DEPS)
CC = x86_64-w64-mingw32-gcc-7.3.0.exe
LD = x86_64-w64-mingw32-gcc-7.3.0.exe
AR = ar cr libclib.a $(OBJS)
CFLAGS = -W -Wall -O1 $(INCLUDES)
# x86_64-w64-mingw32-gcc-7.3.0.exe -Iinc/test.h -c src/test.c -o out/test.o FONCTIONNE
$(DOUT)/test.o: $(SRCDIR)/test.c $(DEPS) \
$(CC) $(CFLAGS) -c $< -o $@
#make: *** Aucune règle pour fabriquer la cible «*x86_64-w64-mingw32-gcc-7.3.0.exe*»,
nécessaire pour «*out/test.o*». Arrêt.
out/test2.o: $(SRCDIR)/test2.c $(DEPS) \
$(CC) $(CFLAGS) -c $< -o $@
out/test3.o: $(SRCDIR)/test3.c $(DEPS) \
$(CC) $(CFLAGS) -c $< -o $@
out/libclib.a: $(OBJS) \
$(AR)
$(BIN): libclib.a $(OBJS) \
$(CC) $(CFLAGS) libclib.a $(OBJS) -o $< $@
#out/test.exe: $(SRCDIR)/test.c out/test.o out/test2.o out/test3.o \
# $(CC) $(CFLAGS) $(SRCDIR)/test.c out/libclib.a out/test.o out/test2.o out/test3.o -o out/test.exe |
Et pourtant
x86_64-w64-mingw32-gcc-7.3.0.exe -Iinc/test.h -c src/test.c -o out/test.o
FONCTIONNE
Merci de votre attention,
JPD