Missing separator in Makefile?

后端 未结 6 2075
迷失自我
迷失自我 2021-01-01 12:17

The following Makefile is not working and I am not sure what\'s going on.

CC = gcc
CFLAGS = -Wall -g

demo:
    ${CC} ${CFLAGS} demo.c -o demo
lib:
    ${CC}         


        
6条回答
  •  無奈伤痛
    2021-01-01 12:41

    Same error. When I use vi here, special characters won't show.

    Cause is simple: There should be a TAB not spaces in front of ${CC}.

提交回复
热议问题