如何在makefile中指定编译器
1个回答
2015-10-03
展开全部
# Makefile
CC = gcc
CFLAGS = -Wall
# This is o www.hnnedu.com ur target
cipher: cipher.o vigenere.o
$(CC) $(CFLAGS) -o cipher cipher.o vigenere.o
cipher.o: cipher.c vigenere.h
$(CC) $(CFLAGS) -c cipher.c
vigenere.o: vigenere.c vigenere.h
$(CC) $(CFLAGS) -c vigenere.c
CC = gcc
CFLAGS = -Wall
# This is o www.hnnedu.com ur target
cipher: cipher.o vigenere.o
$(CC) $(CFLAGS) -o cipher cipher.o vigenere.o
cipher.o: cipher.c vigenere.h
$(CC) $(CFLAGS) -c cipher.c
vigenere.o: vigenere.c vigenere.h
$(CC) $(CFLAGS) -c vigenere.c
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询