다음 터미널 명령은 컴파일 및 리눅스C 코드를 Arm 어셈블리 코드와 링크시키는 Makefile을 작성하려면 어떻게해야합니까?
rm *.o
gcc -c printS.c -o printS.o
as lab8.S -o lab8.o
gcc lab8.o printS.o -o lab8test
내가 메이크 파일을 작성한 적이없는 나는 이런 식으로 뭔가가 하나의 가치가 그림에 내가 .c와 .S 파일을 링크합니다. 어떤 도움을 주셔서 감사합니다.
이 질문보기 http://stackoverflow.com/questions/4827618/compiling-c-file-with-assembler-file-dependencies#4827835 –