Last active
October 9, 2015 21:50
-
-
Save Mine02C4/d167b3485085f5a8153d to your computer and use it in GitHub Desktop.
プログラミング第3同演習向けMakefile 直下にある .c をまとめて1つの実行ファイルにコンパイル。多分後半で使う。多分
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = gcc | |
CFLAGS = -O0 | |
OUTPUT := elf | |
objects := $(patsubst %.c,%.o,$(wildcard *.c)) | |
$(OUTPUT) : $(objects) | |
$(CC) $(objects) -o $@ | |
.PHONY : clean | |
clean : | |
rm *.o | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment