Makefile:4: *** 缺少分隔符。停止
这是我的 Makefile:
EXEC_NAME = bin/exemple bin/test
OBJ_FILES = bin/main.o bin/Image.o bin/Pixel.o
CC * g++
CFLAGS * -wall -ggdb
INCLUDES *
LIBS *
all: $(EXEC_NAME)
exemple: mainExemple.o Image.o Pixel.o*
test: mainTest.o Image.o Pixel.o
$(CC) bin/main.o bin/Image.o bin/Pixel.o -o bin/test $(LIBS)
mainExemple.o: src/mainTest.cpp src/Image.cpp src/Pixel.cpp
$(CC) $(CFLAGS) $(INCLUDES) -o bin/mainExemple.o src/mainExemple
mainTest.o: src/mainTest.cpp src/Image/h src/Pixel.h
$(CC) $(CFLAGS) $(INCLUDES) -o bin/mainTest.o -c src/mainTest.cpp
Image.o: src/Image.cpp src/Image.h src/Pixel.h
$(CC) $(CFLAGS) $(INCLUDES) -o bin/Image.o -c src/Image.cpp
Pixel.o: src/Pixel.cpp src/Pixel.h
$(CC) $(CFLAGS) $(INCLUDES) -o bin/Pixel.o -c src/Pixel.cpp
main.o: $(SRC)main.cpp $(SRC)Image.h $(SRC)Pixel.h
g++ $(FLAGS) -c $(SRC)main.cpp -o $(OBJ)main.o
clear:rm $(OBJ)*.o
我得到:Makefile:4:***缺少分隔符。停止。
我的错误在哪里?
This is my Makefile:
EXEC_NAME = bin/exemple bin/test
OBJ_FILES = bin/main.o bin/Image.o bin/Pixel.o
CC * g++
CFLAGS * -wall -ggdb
INCLUDES *
LIBS *
all: $(EXEC_NAME)
exemple: mainExemple.o Image.o Pixel.o*
test: mainTest.o Image.o Pixel.o
$(CC) bin/main.o bin/Image.o bin/Pixel.o -o bin/test $(LIBS)
mainExemple.o: src/mainTest.cpp src/Image.cpp src/Pixel.cpp
$(CC) $(CFLAGS) $(INCLUDES) -o bin/mainExemple.o src/mainExemple
mainTest.o: src/mainTest.cpp src/Image/h src/Pixel.h
$(CC) $(CFLAGS) $(INCLUDES) -o bin/mainTest.o -c src/mainTest.cpp
Image.o: src/Image.cpp src/Image.h src/Pixel.h
$(CC) $(CFLAGS) $(INCLUDES) -o bin/Image.o -c src/Image.cpp
Pixel.o: src/Pixel.cpp src/Pixel.h
$(CC) $(CFLAGS) $(INCLUDES) -o bin/Pixel.o -c src/Pixel.cpp
main.o: $(SRC)main.cpp $(SRC)Image.h $(SRC)Pixel.h
g++ $(FLAGS) -c $(SRC)main.cpp -o $(OBJ)main.o
clear:rm $(OBJ)*.o
and i get : Makefile:4: *** missing seperator. Stop.
Where is my mistake?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)