>> Delete No. 56896 article
No. ▶ makefile을 만들었는데.. 매크로변수를
인식못하네요

등록 2002-09-12 11:35:00 By localhost     조회 5
이름 이지영    

		OBJECTS = main.o read.o write.o
SRCS = main.c read.c write.c
 CC = cc
CFLAGS = -g -c
 TARGET = test
 $(TARGET) : $(OBJECTS)
$(CC) -o $(TARGET) $(OBJECTS)
 clean :
                rm -rf $(OBJECTS) $(TARGET) core
 main.o : io.h main.c
read.o : io.h read.c
write.o: io.h write.c
  이렇게 makefile을 만들었는데요..
유닉스에서 > makefile 하면
 makefile[7]: .SUFFIXES=:  not found
makefile[13]: INC:  not found
makefile[13]: -g:  not found
makefile[18]: -: cannot open
makefile[20]: TARGET:  not found
makefile[20]: all:  not found
makefile[21]: TARGET:  not found
makefile[21]: OBJS:  not found
makefile[22]: OBJS:  not found
makefile[22]: -shared:  not found
makefile[24]: dep:  not found
makefile[25]: INC:  not found
makefile[25]: SRCS:  not found
makefile[25]: gccmakedep:  not found
makefile[27]: clean:  not found
makefile[28]: OBJS:  not found
makefile[28]: TARGET:  not found
 이런 오류가 떨어지는데..뭐가 문제있는지..
 make -p 해서 보면 위의 메크로가 정의 되어있는데..
 뭐가 문제인지 모르겠습니다..고수님의 답변을 기다립니다.--이 곳에 서명을 적어주십시
오.  이지영
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved