Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
makefileディレクトリ内のすべての .c を実行ファイルに変換しようとしています。例えば:
makefile
am.c 2.c s.c
の中へ
am 2 s
プログラム。
何でも動作しますが、使用しますが、コンパイラccを使用したいです。gccどうやってやるの?
cc
gcc
SRC = $(wildcard *.c) BIN = $(patsubst %.c,%,$(SRC)) all : $(BIN)
一番上の文に一行追加
CC = gcc